在使用Scrapy 框架练习爬虫时出现报错:
Signature of method 'BaiduSpider.parse()' does not match signature of the base method in class 'Spider'
解决方案:
在response后添加*args, **kwargs
def parse(self, response, *args, **kwargs)
在使用Scrapy 框架练习爬虫时出现报错:
Signature of method 'BaiduSpider.parse()' does not match signature of the base method in class 'Spider'
解决方案:
在response后添加*args, **kwargs
def parse(self, response, *args, **kwargs)