第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

只顯示查到一行 ,然后就失敗,去掉try后顯示如下錯誤!

只顯示查到一行 ,然后就失敗,去掉try后顯示如下錯誤!

幕布斯9012443 2017-02-06 13:57:55
pydev debugger: starting (pid: 7212)craw 1,http://baike.baidu.com/item/PythonTraceback (most recent call last):? File "D:\eclipse-standard_downza\eclipse\plugins\org.python.pydev_3.9.0.201411111611\pysrc\pydevd.py", line 2183, in <module>? ? globals = debugger.run(setup['file'], None, None)? File "D:\eclipse-standard_downza\eclipse\plugins\org.python.pydev_3.9.0.201411111611\pysrc\pydevd.py", line 1622, in run? ? pydev_imports.execfile(file, globals, locals) ?# execute the script? File "D:\workspase\imooc\baike_spider\spider_main.py", line 41, in <module>? ? obj_spider.craw(root_url)? File "D:\workspase\imooc\baike_spider\spider_main.py", line 25, in craw? ? new_urls,new_data=self.parser.parse(new_url,html_cont)? File "D:\workspase\imooc\baike_spider\html_parser.py", line 35, in parse? ? soup = BeautifulSoup(html_cont,'html_parser',from_encoding='utf-8')? File "C:\Python27\lib\site-packages\bs4\__init__.py", line 165, in __init__? ? % ",".join(features))bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: html_parser. Do you need to install a parser library?
查看完整描述

1 回答

?
習(xí)慣受傷

TA貢獻(xiàn)885條經(jīng)驗 獲得超1144個贊

soup?=?BeautifulSoup(html_cont,'html_parser',from_encoding='utf-8')

這句你改成:

soup?=?BeautifulSoup(html_cont,'html.parser',from_encoding='utf-8')


查看完整回答
1 反對 回復(fù) 2017-02-06
  • 幕布斯9012443
    幕布斯9012443
    修改以后 沒有報錯 但是顯示一條結(jié)果 pydev debugger: starting (pid: 3528) craw 1,http://baike.baidu.com/item/Python
  • 1 回答
  • 0 關(guān)注
  • 2438 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號