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

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

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

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 回復(fù) 有任何疑惑可以回復(fù)我~

沒有html_parser??
要改成html.parser

如樓上

1 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消
Python開發(fā)簡單爬蟲
  • 參與學(xué)習(xí)       227603    人
  • 解答問題       1282    個

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

進(jìn)入課程

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

我要回答 關(guān)注問題
微信客服

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

幫助反饋 APP下載

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

公眾號

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