How to do it

There is a script named 06/08_scrapy_pagination.py. Run this script with Python and there will be a lot of output from Scrapy, most of which will be the standard Scrapy debugging output. However, within that output you will see that we extracted the data items on all five pages:

Page 1 DataPage 2 DataPage 3 DataPage 4 DataPage 5 Data

Get Python Web Scraping Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.