Little change in test spider that broke the engine test

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40354
This commit is contained in:
elpolilla 2008-11-03 10:43:40 +00:00
parent 0574bbd44a
commit 776818db71
1 changed files with 3 additions and 3 deletions

View File

@ -22,9 +22,9 @@ class TestSpider(BaseSpider):
def parse(self, response):
xlink = LinkExtractor()
itemre = re.compile(self.itemurl_re)
for url in xlink.extract_urls(response):
if itemre.search(url):
yield Request(url=url, callback=self.parse_item)
for link in xlink.extract_urls(response):
if itemre.search(link.url):
yield Request(url=link.url, callback=self.parse_item)
def parse_item(self, response):
item = ScrapedItem()