How to scrape a whole website's robots.txt file properly? or Best way to scrape a whole website's rob

18 Replies, 2198 Views

Scraping robots.txt at scale? Yeah, it’s tricky.

I use a simple bash script with curl to scrape whole website robot.txt how to:

```
curl -s https://example.com/robots.txt >> robots_rules.txt
```

Loop through domains in a list, add a sleep 2 between calls.

For Python folks, Scrapy + Rotating proxies is the way to avoid blocks.

Messages In This Thread



Users browsing this thread: 1 Guest(s)