<p>After cleaning a folder full of HTML files with TIDY, how can the tables content be extracted for further processing?</p>

[{'answer_id': 68707, 'author': 'Serafina Brocious', 'author_id': 4977, 'author_profile': 'https://Stackoverflow.com/users/4977', 'pm_score': 2, 'selected': False, 'text': "<p>I've used BeautifulSoup for such things in the past with great success.</p>\n"}, {'answer_id': 68729, 'author': 'Ash', 'author_id': 5023, 'author_profile': 'https://Stackoverflow.com/users/5023', 'pm_score': 0, 'selected': False, 'text': '<p>In .NET you could use <a href="http://www.codeplex.com/htmlagilitypack" rel="nofollow noreferrer">HTMLAgilityPack</a>.</p>\n\n<p>See this <a href="https://stackoverflow.com/questions/2861/options-for-html-scraping">previous question</a> on StackOverflow for more information.</p>\n'}, {'answer_id': 68753, 'author': 'fuentesjr', 'author_id': 10708, 'author_profile': 'https://Stackoverflow.com/users/10708', 'pm_score': 0, 'selected': False, 'text': '<p>If you want to extract the content from the the HTML markup, you should use some type of HTML parser. To that end there are plenty out there and here are two that might suite your needs:</p>\n\n<p><a href="http://jtidy.sourceforge.net/" rel="nofollow noreferrer">http://jtidy.sourceforge.net/</a><br />\n<a href="http://htmlparser.sourceforge.net/" rel="nofollow noreferrer">http://htmlparser.sourceforge.net/</a></p>\n'}, {'answer_id': 73418, 'author': 'pdc', 'author_id': 8925, 'author_profile': 'https://Stackoverflow.com/users/8925', 'pm_score': 2, 'selected': True, 'text': "<p>Depends on what sort of processing you want to do. You can tell Tidy to generate XHTML, which is a type of XML, which means you can use all the usual XML tools like XSLT and XQuery on the results.</p>\n\n<p>If you want to process them in Microsoft Excel, then you should be able to slice the table out of the HTML and put it in a file, then open that file in Excel: it will happily convert an HTML table in to a spreadsheet page. You could then save it as CSV or as an Excel workbook etc. (You can even use this on a web server -- return an HTML table but set the <code>Content-Type</code> header to <code>application/ms-vnd.excel</code>: Excel will open and import the table and turn it in to a spreadsheet.)</p>\n\n<p>If you want CSV to feed in to a database then you could go via Excel as before, or if you want to automate the process, you could write a program that uses the XML-navigating API of your choice to iterate of the table rows and save them as CSV. Python's Elementtree and CSV modules would make this pretty easy.</p>\n"}, {'answer_id': 95893, 'author': 'lyates', 'author_id': 1359937, 'author_profile': 'https://Stackoverflow.com/users/1359937', 'pm_score': 1, 'selected': False, 'text': '<p>After reviewing the suggestions, I wound up using <a href="http://htmlunit.sourceforge.net/" rel="nofollow noreferrer" title="HtmlUnit">HtmlUnit</a>.</p>\n\n<p>With HtmlUnit, I was able to customize the Java code to open each HTML file in the folder,  navigate to the TABLE tag,\nquery each column content and extract the data I needed to create a CSV file.</p>\n'}, {'answer_id': 294764, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>iterate through the text and Use regular expression :)</p>\n\n<p><a href="http://www.knowledgehouse.sg" rel="nofollow noreferrer">http://www.knowledgehouse.sg</a></p>\n'}]
['https://Stackoverflow.com/questions/68691', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1359937/']