robots.txt is a convention for publishing crawler-access rules at a website’s standard location. Before scraping, inspect it for paths that should not be requested. section 10.2.3
Use robots.txt as part of a responsible scraping workflow:
- Open the site’s robots.txt file from its home page and identify restricted paths. section 10.2.3
- Treat ignored rules as a practical risk: the site may block your IP address. section 10.2.3
- Limit requests and add pauses, particularly when looping through pages or retrying errors. section 10.2.3
Checking a scraping sandbox
Use Books to Scrape to inspect its robots.txt rules, determine whether genre pages are restricted, and plan a scraping frequency before collecting book metadata for pricing or promotion analysis. section 10.2.4
