htmlparser2 is the fastest HTML parser, and takes some shortcuts to get there. If you need strict HTML spec compliance, have a look at parse5.
Contribute to hacker-insider/Hacking development by creating an account on GitHub.