Ethical web scraping is collecting publicly available web data in a way that respects a site's stated access rules, avoids overloading its servers, and stays within applicable legal and privacy boundaries.
Core Practices for Ethical Scraping
- Respecting
robots.txtdirectives where reasonable - Rate-limiting requests to avoid overloading target servers
- Avoiding the collection of personal data without a clear legal basis
- Reviewing a site's Terms of Service before large-scale collection
RFC 9309 describes robots.txt rules as rules crawlers are requested to honor. It also says they are not a form of access authorization.
Rate-limiting requests isn't just about avoiding detection. It also reduces the load placed on a target site's servers. In U.S. cases, courts have considered how much automated access adversely affects the site owner's system.