当我解析这个页面时,我发现一些信息丢失了,我使用soup.prettify()打印html文档,并且html文档与我使用urllib2.openurl()获得的文档不同,所以丢失了一些信息。/spider_new.py", line 40, in getHotelUrls File "/usr/lib/python2.6/HTMLParser.py", line 112, in close
self
安装BeautifulSoup后,每当我在命令行中运行Python时,就会发出以下警告:UserWarning: No parser was explicitly specified, so I'm using the best
available HTMLparser for this system ("html.parser").t
...File "/Library/Python/2.7/site-packages/bs4/__init__.py", line.join(features))
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml我有<e