亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

報這個錯?請問是什么原因?謝謝

Traceback (most recent call last):

? File "G:\test\imooc_spider\baike_spider\spider_main.py", line 46, in <module>

? ? obj_spider.craw(root_url)

? File "G:\test\imooc_spider\baike_spider\spider_main.py", line 24, in craw

? ? new_urls, new_data = self.parser.parse(new_url,html_cont)

? File "G:\test\imooc_spider\baike_spider\html_parser.py", line 45, in parse

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

? File "C:\Python27\lib\site-packages\bs4\__init__.py", line 152, 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?


正在回答

2 回答

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

1 回復 有任何疑惑可以回復我~

沒有html_parser??
要改成html.parser

如樓上

1 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
Python開發簡單爬蟲
  • 參與學習       227596    人
  • 解答問題       1288    個

本教程帶您解開python爬蟲這門神奇技術的面紗

進入課程

報這個錯?請問是什么原因?謝謝

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號