Is there an HTML parser or some library that automatically converts HTML tables into CSV data rows?
相关问题
- Views base64 encoded blob in HTML with PHP
- Correctly parse PDF paragraphs with Python
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
you can try this simple PHP script (also as online converter) http://www.scherello.de/?id=243
sed s/'<td>'//g d1.txt | sed s/'<\/td>'//g | sed s/'<\/a>'/'<\/a>,'/g | sed s/'<\/em>'/'<\/em>,'/g | sed s/'<tr>'/'<br>'/g | sed s/'<\/tr>'//g | sed s/'<th>'/'<b>'/g | sed s/'<\/th>'/'| <\/b>'/g> names1.html
Here is some perl script. And online converter (java needed). Or you can just manually copy HTML table from browser to OpenOffice Calc / MS Excel and save it as CSV - this will work too.
And here you are step-by-step solution on PHP.