Scrapy, a fast high-level web crawling & scraping framework for Python.
. Added path detection to scrapy-ctl script, which was giving problems with new projects . Corrected typo in CrawlSpiders template
elpolilla2d0cca538eb8
diff --git a/scrapy/trunk/scrapy/conf/project_template/scrapy-ctl.py b/scrapy/trunk/scrapy/conf/project_template/scrapy-ctl.pyindex e8e56eaf2..578358f53 100755--- a/scrapy/trunk/scrapy/conf/project_template/scrapy-ctl.py+++ b/scrapy/trunk/scrapy/conf/project_template/scrapy-ctl.py@@ -1,4 +1,7 @@#!/usr/bin/env python+import sys, os+sys.path.append(os.path.dirname(os.getcwd()))+from scrapy.command.cmdline import executeexecute()diff --git a/scrapy/trunk/scrapy/conf/project_template/templates/spider_crawl.tmpl b/scrapy/trunk/scrapy/conf/project_template/templates/spider_crawl.tmplindex 95b63d98e..57ade8435 100644--- a/scrapy/trunk/scrapy/conf/project_template/templates/spider_crawl.tmpl+++ b/scrapy/trunk/scrapy/conf/project_template/templates/spider_crawl.tmpl@@ -11,7 +11,7 @@ class $classname(CrawlSpider):start_urls = ['http://www.$site/']rules = (- Rule(RegexLinkExtractor(allow=(r'Items/', ), 'parse_items', follow=True)+ Rule(RegexLinkExtractor(allow=(r'Items/', ), 'parse_item', follow=True))def parse_item(self, response):