小编Gus*_*lho的帖子

Scrapy contracts with multiple parse methods

What's the best approach to write contracts for Scrapy spiders that have more than one method to parse the response? I saw this answer but it didn't sound very clear to me.

My current example: I have a method called parse_product that extracts the information on a page but I have more data that I need to extract for the same product in another page, so I yield a new request at the end of this method to make a …

python unit-testing contracts web-crawler scrapy

3
推荐指数
1
解决办法
1353
查看次数

标签 统计

contracts ×1

python ×1

scrapy ×1

unit-testing ×1

web-crawler ×1