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
deprecate Spider.make_requests_from_url. #1728
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1728 +/- ##
==========================================
- Coverage 83.59% 80.31% -3.28%
==========================================
Files 161 161
Lines 8812 8817 +5
Branches 1296 1298 +2
==========================================
- Hits 7366 7081 -285
- Misses 1200 1482 +282
- Partials 246 254 +8
Continue to review full report at Codecov.
|
What's wrong with the implementation? Can the other doc-fixes get merged (assuming they're not already in master by now). |
bbfa4c0
to
692975a
Compare
scrapy/spiders/__init__.py
Outdated
@@ -66,10 +66,20 @@ def _set_crawler(self, crawler): | |||
crawler.signals.connect(self.close, signals.spider_closed) | |||
|
|||
def start_requests(self): | |||
for url in self.start_urls: | |||
yield self.make_requests_from_url(url) | |||
if self.make_requests_from_url is not Spider.make_requests_from_url: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^^ this line is wrong because the condition is always True: bound method is not the same as unbound.
Fixes #1495.
Todo: