失败了,报错如下
Traceback (most recent call last):
File "D:\workspace\imooc\baike_spider\spider_main.py", line 39, in <module>
obj_spider.craw(root_url)
File "D:\workspace\imooc\baike_spider\spider_main.py", line 15, in craw
self.urls.add_new_url(root_url)
File "D:\workspace\imooc\baike_spider\url_manager.py", line 12, 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'