照老師的代碼打下來。。不知道這個是錯哪里啊
Traceback (most recent call last):
File "E:\????\Web\spider_main.py", line 34, in <module>
obj_spider.craw(root_url)
File "E:\????\Web\spider_main.py", line 16, in craw
self.urls.add_new_url(root_url)
AttributeError: 'spiderMain' object has no attribute 'urls'
Traceback (most recent call last):
File "E:\????\Web\spider_main.py", line 34, in <module>
obj_spider.craw(root_url)
File "E:\????\Web\spider_main.py", line 16, in craw
self.urls.add_new_url(root_url)
AttributeError: 'spiderMain' object has no attribute 'urls'
2015-12-21