From dabb064293a2f7721bf32f6b40fc693f6517b7ce Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Thu, 20 Dec 2012 11:59:07 -0200 Subject: [PATCH] fix bug in scrapy parse command when spider is not specified explicitly. closes #209 --- scrapy/commands/parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapy/commands/parse.py b/scrapy/commands/parse.py index 3be80db9b..2a5cdd5c9 100644 --- a/scrapy/commands/parse.py +++ b/scrapy/commands/parse.py @@ -125,7 +125,7 @@ class Command(ScrapyCommand): log.msg(format='Unable to find spider: %(spider)s', level=log.ERROR, spider=opts.spider) else: - self.spider = create_spider_for_request(self.crawler.spiders, url) + self.spider = create_spider_for_request(self.crawler.spiders, Request(url)) if not self.spider: log.msg(format='Unable to find spider for: %(url)s', level=log.ERROR, url=url)