TypeError: add_new_url() takes 1 positional argument but 2 were given
照着打的,为什么会出现这种错误,是因为我的是python 3 么
Traceback (most recent call last):
File "C:\Users\Administrator\workspace\PyrhonTest1\src\text_spider\spider_main.py", line 35, in <module>
obj_spider.craw(root_url)
File "C:\Users\Administrator\workspace\PyrhonTest1\src\text_spider\spider_main.py", line 14, in craw
self.urls.add_new_url(root_url)
TypeError: add_new_url() takes 1 positional argument but 2 were given