From 75cf903e24ab64e4a4d131dfec4671fde75f3b78 Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Tue, 28 Jul 2009 12:27:25 -0300 Subject: [PATCH] adapted project template to use the new Link Extractors location --- scrapy/templates/project/module/templates/spider_crawl.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scrapy/templates/project/module/templates/spider_crawl.tmpl b/scrapy/templates/project/module/templates/spider_crawl.tmpl index 7db48095a..e20384406 100644 --- a/scrapy/templates/project/module/templates/spider_crawl.tmpl +++ b/scrapy/templates/project/module/templates/spider_crawl.tmpl @@ -2,7 +2,7 @@ import re from scrapy.xpath import HtmlXPathSelector -from scrapy.link.extractors import RegexLinkExtractor +from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor from scrapy.contrib.spiders import CrawlSpider, Rule from $project_name.items import ${ProjectName}Item @@ -11,7 +11,7 @@ class $classname(CrawlSpider): start_urls = ['http://www.$site/'] rules = ( - Rule(RegexLinkExtractor(allow=(r'Items/', )), 'parse_item', follow=True), + Rule(SgmlLinkExtractor(allow=(r'Items/', )), 'parse_item', follow=True), ) def parse_item(self, response):