Supporting page redirects

Page redirects in Scrapy are handled using redirect middleware, which is enabled by default. The process can be further configured using the following parameters:

  • REDIRECT_ENABLED: (True/False - default is True)
  • REDIRECT_MAX_TIMES: (The maximum number of redirections to follow for any single request - default is 20)

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.