AttributeError: 'SpiderMain' object has no attribute 'urls'
E:\python\venv\Scripts\python.exe E:/python/baike_spider/spider_main.py
Traceback (most recent call last):
File "E:/python/baike_spider/spider_main.py", line 38, in <module>
obj_spider.craw(root_url)
File "E:/python/baike_spider/spider_main.py", line 14, in craw
self.urls.add_new_url(root_url)
AttributeError: 'SpiderMain' object has no attribute 'urls'
Process finished with exit code 1