大佬们求助
File "C:/Users/wenfu/PycharmProjects/lian/baike_spider/spider_main.py", line 33, in <module>
obj_spider.craw(root_url)
File "C:/Users/wenfu/PycharmProjects/lian/baike_spider/spider_main.py", line 13, in craw
self.urls.add_new_url(root_url)
AttributeError: 'SpiderMain' object has no attribute 'urls
为什么报错了啊
def __int__(self):
self.urls = url_manager.UrlManager()
self.downloader = html_downloader.HtmlDownloader()
self.parser = html_parser.HtmlParser()
self.outputer = html_outputer.HtmlOutputer()
我的不是有urls属性吗