Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

fixed deprecated import in 'crawl' spider template (thanks Anibal)

Pablo Hoffman58bdd7303c05
diff --git a/scrapy/templates/spiders/crawl.tmpl b/scrapy/templates/spiders/crawl.tmpl
index 539003c1b..6b996aa50 100644
--- a/scrapy/templates/spiders/crawl.tmpl
+++ b/scrapy/templates/spiders/crawl.tmpl
@@ -1,7 +1,7 @@
# -*- coding: utf8 -*-
import re
-from scrapy.xpath import HtmlXPathSelector
+from scrapy.selector import HtmlXPathSelector
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
from scrapy.contrib.spiders import CrawlSpider, Rule
from $project_name.items import ${ProjectName}Item