按照老师讲的写的,这是什么错误?
Traceback (most recent call last):
File "D:\imooc\baike_spider\spider_main.py", line 33, in <module>
obj_spider.craw(root_url)
File "D:\imooc\baike_spider\spider_main.py", line 13, in craw
self.urls.add_new_url(root_url)
File "D:\imooc\baike_spider\url_manager.py", line 10, in add_new_url
if url not in self.new_urls and url not in self.old_urls:
AttributeError: 'UrlManager' object has no attribute 'new_urls'
File "D:\cat\imooc\baike_spider\url_manager.py", line 10, in add_new_url
if url not in self.new_urls and url not in self.old_urls:
AttributeError: 'UrlManager' object has no attribute 'new_urls'