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

Popular posts from this blog

How to scrape a website that requires login first with Python Scrapy-framework (Filling login forms automatically)

Import CSV in Postgress using Python Panda , compare two csv files and compare two db table using python

User Model Test Case