照老师的代码打下来。。不知道这个是错哪里啊
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