Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BeatifulSoup constructor: get rid of XMLParsedAsHTMLWarning
To solve this warning on geeknote show xx: Tags: game /usr/lib/python3.11/html/parser.py:170: XMLParsedAsHTMLWarning: It looks like you are parsing an XML document using an HTML parser. If this really is an HTML document (maybe it ss XHTML?), you can ignore or filter this warning. If it is XML, you should know that using an XML parser will be more reliable. To parse this document as XML, make sure you have the lxml package installed, and pass the keyword argument `features="xml"` into the BeautifulSoup constructor.
- Loading branch information