Warning from BeautifulSoup
See original GitHub issue/usr/lib/python3.4/site-packages/bs4/__init__.py:166: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("lxml"). 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], "lxml")
markup_type=markup_type))```
Issue Analytics
- State:
- Created 8 years ago
- Comments:12 (2 by maintainers)
Top Results From Across the Web
How to get rid of BeautifulSoup user warning? - Stack Overflow
The message is telling you exactly what to do: BeautifulSoup([your markup], "html.parser") . Did you do that and see what your output is?...
Read more >BeautifulSoup Parser Warning · Issue #49 · ckreibich/scholar.py
py:166: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html.parser"). This ...
Read more >Python - how to get rid of BeautifulSoup user warning
When I run the following 'BeautifulSoup' code, I get a warning message. How can I fix the warning message? request = urllib.request.
Read more >BeautifulSoup incorrectly warns me that I'm an idiot
This warning is a bug because it's surprise behaviour. ... It may annoy you that Beautiful Soup alerts you to something you think...
Read more >Annoying BeautifulSoup user warning. - Python Forum
As far as i know the only way to get rid of the warning is to give BeautifulSoup class a second arg defining...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We had the same problem with a missing
setup.py
. @geekpradd can you do a release in pypi with this fix? It should be trivial.@renweibo lol