Need to use html5lib instead of BeautifulSoup to parse HTML http://www.reddit.com/r/Python/comments/dgz1i/you_didnt_write_that_awful_page_youre_just_trying/c1058oi