How can I scrape a page to download images from a website efficiently and legally?

18 Replies, 1423 Views

Wow, thanks for all the suggestions, everyone! I tried using BeautifulSoup like a few of you mentioned, and it worked pretty well for my small project. I also checked the `robots.txt` file, and it looks like scraping is allowed for the site I’m using.

Quick follow-up though—how do you guys handle sites that block you after a few requests? I spaced out my requests, but I still got blocked after a while. Any tips on avoiding that?

Also, thanks for the heads-up about APIs! I’ll definitely look into that for future projects. You all rock! 🙌

Messages In This Thread



Users browsing this thread: 1 Guest(s)