-
Notifications
You must be signed in to change notification settings - Fork 10.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scrapy > 2.3 prevents passing callback in cb_kwargs #5237
Comments
I've reproduced this issue Lines 154 to 156 in 1278e76
replaced by: Line 151 in e63188c
as result of mentioned commit 2aa4f3c This
here @jpmckinney On #1138 ( |
There are other ways to pass the callback (e.g. via request meta), so this doesn't necessarily need to be fixed. However, it might be worth mentioning that a |
If it’s trivial to allow a |
To reproduce:
scrapy startproject tutorial cd tutorial scrapy genspider example example.com
In example.py
This works in Scrapy 2.3. In Scrapy > 2.3, it errors:
I don't know if this scrapy commit is relevant to the change in behavior: 2aa4f3c
This is a minimal example. Of course, in my application, I'm jumping through these hoops (controlling the callback of a subsequent request) to be able to reuse code in a complex project.
The text was updated successfully, but these errors were encountered: