Scrapy, a fast high-level web crawling & scraping framework for Python.
Fixed bug in RegexLinkExtractor. Encoding was not being specified
elpolilla382621b814ca
diff --git a/scrapy/trunk/scrapy/link/extractors.py b/scrapy/trunk/scrapy/link/extractors.pyindex 8ee90f86f..7dbf317d9 100644--- a/scrapy/trunk/scrapy/link/extractors.py+++ b/scrapy/trunk/scrapy/link/extractors.py@@ -55,7 +55,7 @@ class RegexLinkExtractor(LinkExtractor):if self.restrict_xpaths:hxs = HtmlXPathSelector(response)html_slice = ''.join(''.join(html_fragm for html_fragm in hxs.x(xpath_expr).extract()) for xpath_expr in self.restrict_xpaths)- links = self._extract_links(html_slice, response.url)+ links = self._extract_links(html_slice, response.url, response.body.get_real_encoding())else:links = LinkExtractor.extract_links(self, response)