mirror of https://github.com/scrapy/scrapy.git
Simplify parse command
This commit is contained in:
parent
4270e0a0da
commit
c887fe37ad
|
|
@ -146,9 +146,8 @@ class Command(ScrapyCommand):
|
|||
if not self.spidercls:
|
||||
logger.error('Unable to find spider for: %(url)s', {'url': url})
|
||||
|
||||
# Request requires callback argument as callable or None, not string
|
||||
def _start_requests(spider):
|
||||
yield self.prepare_request(spider, Request(url, None), opts)
|
||||
yield self.prepare_request(spider, Request(url), opts)
|
||||
self.spidercls.start_requests = _start_requests
|
||||
|
||||
def start_parsing(self, url, opts):
|
||||
|
|
|
|||
Loading…
Reference in New Issue