After I installed BeautifulSoup, Whenever I run my Python in cmd, this warning comes out.
D:\Application\python\lib\site-packages\beautifulsoup4-4.4.1-py3.4.egg\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")
I have no ideal why it comes out and how to solve it.
BeautifulSoup([your markup], "html.parser")
. Did you do that and see what your output is? BeautifulSoup is trying to make your life easier. Listen to the Soup. :) – idjaw Nov 4 '15 at 0:14soup = BeautifulSoup(html)
tosoup = BeautifulSoup(html, "html.parser")
. – Casimir Crystal Nov 4 '15 at 0:21