BeautifulSoup warning
Closed this issue · 2 comments
protist commented
When I run spacesetbg
, I get the following in STDERR.
/usr/lib/python3.5/site-packages/bs4/__init__.py:166: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html.parser"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.
To get rid of this warning, change this:
BeautifulSoup([your markup])
to this:
BeautifulSoup([your markup], "html.parser")
markup_type=markup_type))
I run spacesetbg
through cron
, so I get new mail every time it is run.
t0nedef commented
I made a change that resolves this issue. Thanks for bringing it up.
protist commented
Thank you for the prompt fix. It works perfectly now.