First line was stripping spaces. Thanks to Elie for pointing out the html parser instead of using lxml.