函数的调用报错obj_spider.craw(root_url)和def craw(self, root_url)
Traceback (most recent call last):
File "/Users/Bruce/GitHub/python/baike_spider/spider_main.py", line 38, in <module>
obj_spider.craw(root_url)
File "/Users/Bruce/GitHub/python/baike_spider/spider_main.py", line 16, in craw
self.urls.add_new_url(root_url)
File "/Users/Bruce/GitHub/python/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'