跪求解答,快逼疯了,就能craw一行
把try 去掉 发现这个错误
craw 1:https://baike.baidu.com/item/Python/407313
Traceback (most recent call last):
File "C:\Users\win8-\eclipse-workspace\FirstPython\baike_spider\spider_main.py", line 32, in <module>
obj_spider.craw(root_url)
File "C:\Users\win8-\eclipse-workspace\FirstPython\baike_spider\spider_main.py", line 20, in craw
self.urls.add_new_urls(new_u)##
File "C:\Users\win8-\eclipse-workspace\FirstPython\baike_spider\url_manager.py", line 17, in add_new_urls
for url in urls(): ##
TypeError: 'set' object is not callable