Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

fix bug in scrapy parse command when spider is not specified explicitly. closes #209

Pablo Hoffmandabb064293a2
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)