mirror of https://github.com/scrapy/scrapy.git
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:
parent
0574bbd44a
commit
776818db71
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue