scrapy - How to extract items that are paginated
[Python] Get links of product to every page of a retailor
Here is the code of a simple spider that would use Crawling scraped links & next pagination.
You have two options to solve your problem. The general one is to use yield to generate new requests instead of return. That way you can issue more than one new request from a single callback. Check the second example at http://doc.scrapy.org/en/latest/topics/spiders.html#basespider-example.
Comments
Post a Comment