I learning Scrapy, and using Pycharm verison 2021.3.1 Community Edition. When creating the parse() method for the Spider class, Pycharm suggests defining the parse() method with two parameters (response) and (kwargs):
def parse(self, response, **kwargs):
pass
However, according to the the Scrapy documentation, the parse() method is defined with one parameter (response).
def parse(self, response):
pass
Questions:
Is there anything wrong with Pycharm's predefined
parse()method? Are there any cases where theparse()method would pass two arguments?If there is something wrong with this predefined
parse()method, how can thesuggestion snippetbe edited?
Thanks for any help!