运行报错,怎么回事,看不懂!
H:\Python27\python.exe G:/wwwRoot/Python27/spider/wiki_baike/spider_main.py
Traceback (most recent call last):
File "G:/wwwRoot/Python27/spider/wiki_baike/spider_main.py", line 40, in <module>
obj_spider.craw(root_url)
File "G:/wwwRoot/Python27/spider/wiki_baike/spider_main.py", line 18, in craw
self.urls.add_new_url(root_url)
AttributeError: 'SpiderMain' object has no attribute 'urls'
Process finished with exit code 1