spider icon indicating copy to clipboard operation
spider copied to clipboard

报错,求问是怎么回事

Open zhaochl opened this issue 9 years ago • 0 comments

开始抓取迅播前三页的电影链接。。。 /usr/local/lib/python2.7/site-packages/beautifulsoup4-4.4.1-py2.7.egg/bs4/init.py:166: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html5lib"). 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], "html5lib")

zhaochl avatar Dec 24 '15 03:12 zhaochl