TypeError: unhashable type: 'set' 出现这种报错,求解?
craw 1 : https://baike.baidu.com/item/Python/407313
Traceback (most recent call last):
File "D:/DataAnalysis/Python/Crawler/spider_main.py", line 49, in <module>
obj_spider.craw(root_url)
File "D:/DataAnalysis/Python/Crawler/spider_main.py", line 37, in craw
self.urls.add_new_url(new_urls)
File "D:\DataAnalysis\Python\Crawler\url_manager.py", line 17, in add_new_url
self.new_urls.add(url)
TypeError: unhashable type: 'set'