table2csv
table2csv copied to clipboard
Extract data from an HTML table and store results to a csv file.
UserWarning: No parser was explicitly specified To get rid of this warning, change code that looks like this: BeautifulSoup(YOUR_MARKUP}) to this: BeautifulSoup(YOUR_MARKUP, "html.parser")
` markup_type=markup_type)) Traceback (most recent call last): File "C:/Thanga/Work/python/uni/ws2/dataextractor/pythonMaster/tests/html_extractor.py", line 8, in df = table2csv.find_nth_from_top(soup, 2) # df is a pandas dataframe File "C:\Program Files\Anaconda\lib\site-packages\table2csv\tf1.py", line 75, in find_nth_from_top return...
the header in ` a b c `
Thanks for this code. Had a problem with "html.parser" on the results of the site http://www.freepatentsonline.com/search.html. When you run a search on that site, it returns a table of results....