-
Notifications
You must be signed in to change notification settings - Fork 571
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
Error with Spider arguments sent using Scrapyd #78
Comments
@dfockler thanks for sharing, mind sending in a PR to update the docs? (https://github.com/scrapy/scrapyd/tree/master/docs) |
@dfockler ditto, thanks for sharing. Saved me! |
thanks.@dfockler |
hi,friends.
I thought for a long time, I thought it was a version conflict of redis at first, but I changed a lot of redis versions, or not, my scrapy-redis is 0.6.8, I need your help. Thank you. |
saved my ass! |
I figured out the solution to this, but I thought I would put it somewhere for comment and documentation.
I was getting this error when scheduling spider runs through scrapyd with spider arguments.
It's not stated in the documentation explicitly, but when using scrapyd your spiders should allow for any number of arguments which I did not realize. scrapyd was sending a
_job
keyword to the spider, which my spider couldn't handle. So in short your spider__init__
def should look likeand look for the keyword of the argument you want instead of
Hopefully this helps some other python newbies in the future.
The text was updated successfully, but these errors were encountered: