第六章
Closed this issue · 1 comments
Stone-Stone commented
出现如下错误:
Traceback (most recent call last):
File "E:/PythonProjects/py_spider/spider_1.py/SpiderMan.py", line 43, in
spider_man.crawl(root_url)
File "E:/PythonProjects/py_spider/spider_1.py/SpiderMan.py", line 20, in crawl
self.manager.add_new_url(root_url)
TypeError: add_new_url() missing 1 required positional argument: 'url'
Stone-Stone commented
已解决,对象初始化的问题。