How to scrape all pages from a website using robots.txt – is it possible? or Can you scrape all pages

14 Replies, 1558 Views

Wait, why would you use robots.txt to scrape all pages from a website? That’s like using a stop sign to find all the roads in a city.

If you’re trying to index everything, start with the homepage and crawl links recursively. Python + BeautifulSoup or Scrapy works great.

Also, check if the site has a sitemap—sometimes it’s at /sitemap.xml. If they’re hiding pages, you might need proxies to avoid bans.

Messages In This Thread



Users browsing this thread: 1 Guest(s)