mirror of https://github.com/scrapy/scrapy.git
. 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:
parent
6b0e1f090e
commit
2d0cca538e
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue