. Added path detection to scrapy-ctl script, which was giving problems with new projects

. Corrected typo in CrawlSpiders template

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40495
This commit is contained in:
elpolilla 2008-12-15 11:58:57 +00:00
parent 6b0e1f090e
commit 2d0cca538e
2 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,7 @@
#!/usr/bin/env python
import sys, os
sys.path.append(os.path.dirname(os.getcwd()))
from scrapy.command.cmdline import execute
execute()

View File

@ -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):