r/WebScrapingInsider • u/James-w07 • 15h ago
While web crawling with Python my requests + BeautifulSoup crawler keeps looping and leaving the site, should I fix it myself or switch to Scrapy?
So i built a basic crawler with requests and BeautifulSoup. It starts on one page, grabs all the links and visits them. It worked for a bit but now it keeps visiting the same pages again and again, and once it wandered off to a totally different website (some social media link i think) and i had to ctrl+c it.
People keep telling me to use Scrapy instead but idk if thats overkill for me, im still on the basics (functions, dicts, a little async😉). Does Scrapy handle the visited pages / staying on one site stuff for you, or do i still have to figure that out myself? Or should i fix my own loop first so i actually understand it?
Also no idea how fast is ok to run it, i dont want to annoy the site.