I have a webpage that prints out csv data using a cgi script. I want to parse the data using Python. So far I know that I can use urllib to request the url and obtain the html into one giant byte string. However, it contains much more than the csv data I need, including html tags, newlines, etc... What I would like to do with this data is to be able to filter rows and columns. This data will eventually go into another csv file which I can use as data to display in graphs (highcharts).
How can I parse the html for just the csv? And is there a library that can gather the csv into a dictionaries or even better, a csv file?
Thanks