I’m getting this error. Is it a bug or is it a code error? What does it mean? (i upgraded html5lib bs4 and requests) Answer It’s an issue related to your html5lib package version try upgrading it.
Tag: html5lib
Don’t put html, head and body tags automatically, beautifulsoup
I’m using beautifulsoup with html5lib, it puts the html, head and body tags automatically: Is there any option that I can set, turn off this behavior ? Answer This parses the HTML with Python’s builtin HTML parser. Quoting the docs: Unlike html5lib, this parser makes no attempt to create a well-formed HTML document by adding a <body> tag. Unlike lxml,