Scrapy, a fast high-level web crawling & scraping framework for Python.
Make scrapy available in shell without explicit import statement
Paul Tremberth105163fece50
diff --git a/scrapy/shell.py b/scrapy/shell.pyindex 099e1af0a..4f9f06561 100644--- a/scrapy/shell.py+++ b/scrapy/shell.py@@ -115,6 +115,9 @@ class Shell(object):self.populate_vars(response, request, spider)def populate_vars(self, response=None, request=None, spider=None):+ import scrapy++ self.vars['scrapy'] = scrapyself.vars['crawler'] = self.crawlerself.vars['item'] = self.item_class()self.vars['settings'] = self.crawler.settings