Is there an HTML parser or some library that automatically converts HTML tables into CSV data rows?
Asked
Active
Viewed 3.9k times
2
-
4Storing an entire HTML page as CSV doesn't really make much sense. You mean convert an HTML table to CSV? – Michael Mrozek Apr 13 '10 at 05:31
3 Answers
1
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

Paul D. Waite
- 96,640
- 56
- 199
- 270

Rohit Galgalikar
- 19
- 1
1
you can try this simple PHP script (also as online converter) http://www.scherello.de/?id=243

M.S.
- 11
- 1