Guy Guy - 11 days ago 5
HTML Question

Python: Is there a built in package to parse html into dom

I found HTMLParser for sax and xml.minidom for xml. I have a pretty well formed html so I don't need a too strong parser - any suggestions?

Answer

Take a look at BeautifulSoup. It's popular and excellent at parsing HTML.

Comments