-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Command parse unhandled error :AttributeError: 'NoneType' object has no attribute 'start_requests' #3264
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
Labels
Comments
For those who need a quick-and-dirty workaround, specify the spider |
The original PR, #3265, looks correct to me, someone just needs to create a new one, import the commit from that one and publish it. |
Hello , I think i can help with this issue if someone could give me a little insight . |
hi @PushanAgrawal , as you can see above your comment there is already a PR open for it. |
andreastziortz
added a commit
to AngelikiBoura/scrapy
that referenced
this issue
May 6, 2022
Changes Implementation: - Check whether Spider exists or is None, and if it's None skip execution of start_requests() with non existing Spider Testing: - Add a test case with invalid url inside test_command_parse Test proves that non-matched Spider does not throw an AttributeError
kmike
added a commit
that referenced
this issue
May 28, 2022
…_unhandled_error Issue #3264, fix error handling when spider is not matched
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Scrapy version :1.5.0
When i run the command scrapy parse http://www.baidu.com, and the url www.baidu.com dosn't have spider matched , then i got the error:
The failed reason should be follwing code(scrapy/commands/parse.py line 151):
self.spidercls.start_requests = _start_requests
because the url www.baidu.com dosn't have spider matched,so self.spidercls is none,so self.spidercls.start_requests throw the error.
The text was updated successfully, but these errors were encountered: