I have a table of data in an html table on a website and need to know how to export that data as .csv file.
How would this be done?
Here is a really quick CoffeeScript/jQuery example
csv = [] for row in $('#sometable tr') csv.push ("\"#{col.innerText}\"" for col in $(row).find('td,th')).join(',') output = csv.join("\n")