Parsing HTML with Python 2.7 - HTMLParser, SGMLParser, or Beautiful Soup?
- by Eric Wilson
I want to do some screen-scraping with Python 2.7, and I have no context for the differences between HTMLParser, SGMLParser, or Beautiful Soup.
Are these all trying to solve the same problem, or do they exist for different reasons? Which is simplest, which is most robust, and which (if any) is the default choice?
Also, please let me know if I…