爬蟲(chóng) beautifulsoup
Traceback (most recent call last):
? File "D:\Eclipse\imooc\bike_spider\spider_main.py", line 42, in <module>
? ? obj_spider.craw(root_url) ? ?
? File "D:\Eclipse\imooc\bike_spider\spider_main.py", line 21, in craw
? ? new_urls, new_data = self.parser.parse(new_url,html_cont)
? File "D:\Eclipse\imooc\bike_spider\html_parser.py", line 39, in parse
? ? soup = BeautifulSoup(html_cont,'html.parser',from_encoding = 'utf-8')
TypeError: object() takes no parameters
2017-09-15
仔細(xì)檢查一下你的__init__()函數(shù)是不是只有一個(gè)下劃線