1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-24 05:45:31 +00:00

Try it with a string

This commit is contained in:
Matthijs Vos 2019-04-10 13:01:01 +02:00
parent d27c2c68ba
commit 50730ed228

View File

@ -68,7 +68,7 @@ class Command(ScrapyCommand):
spider_loader = self.crawler_process.spider_loader
with set_environ(SCRAPY_CHECK=True):
with set_environ(SCRAPY_CHECK='true'):
for spidername in args or spider_loader.list():
spidercls = spider_loader.load(spidername)
spidercls.start_requests = lambda s: conman.from_spider(s, result)