Converting HTML table in CSV

Hi,

I'm searching for an easy and quick way to convert a HTML file containing a table with i.e. data written like this (i shortened the code a little ;)  to a CSV file:

<table>

<tr>
<td>Title 1</td>
<td>Amount 1</td>
</tr>

<tr>
<td>Title 2</td>
<td>Amount 2</td>
</tr>

etc...

</table>

Thank you for helping.
LVL 1
eirikurAsked:
Who is Participating?
 
Eddie ShipmanConnect With a Mentor All-around developerCommented:
BTW, My last comment was not meant to say that javascript was a *real* programming language.
0
 
Eddie ShipmanAll-around developerCommented:
Well, you are not going to be able to do it with just HTML code, you are going to
have to use a real programming language to do it. Take a look at the javascript
code here:

http://www.laurenceholbrook.com/TechnicalInformation/JavaScript_DOM_Excel_AutoFit_Graph_CSV.html

0
 
jenniferDACommented:
If you don't need a programmatic way of doing this, you can just select all the text in the table as it's rendered in the browser and paste it into Excel.  Then save as a CSV file.
0
 
Michel PlungjanIT ExpertCommented:
I load the page into firefox, select all, paste the page into my favorite editor (textpad.com) and change all \t to ; with the regexp checkbox checked.
Save as csv and voila. If your excel can use tab-delimited csv, you can skip the change \t to ;

Michel
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.