I would like to get stats out of a certain website. I would like to convert an html table to a csv (comma separated values)?
How would I go about doing this in say PHP/PERL/RUBY or any language?
HINT:( you can actually google a solution for this but let's build up the knowledge base here at nullpointer.ph)
asked Oct 16 '09 at 10:46
Ruby: You can use Hpricot or Nokigiri to parse the table and its elements from the site's HTML.
And if I remember right, this could actually be done in VB - or any other language which can access ActiveX controls - by including a Browser control, loading the webpage and parsing the Documents object. It's a lot more work than using high-level HTML parsers though.