News for hackers. Stuff that matters.
Re:How to crawl a quarter billion webpages in 40 hours (2012) by t0mbstone on Thursday July 05, 2018 @04:37AM (#17461733)
Something that has always puzzled me about scrapers is how they avoid scraper traps.

For example, what if you have a web site that generates a thousand random links on a page, which all load pages that generate another thousand random links, to infinity?

Re:How to crawl a quarter billion webpages in 40 hours (2012) by iso1337 on Thursday July 05, 2018 @11:28AM (#17464020)
You can use the AOPIC algorithm that has a credit and taxation system to penalize these types of websites.

https://stackoverflow.com/questions/5834808/designing-a-web-...

Re:How to crawl a quarter billion webpages in 40 hours (2012) by lfowles on Thursday July 05, 2018 @09:23AM (#17463033)
I used to have what was basically a spider trap on my website while learning Django. The truth is that every bot that found it hammered my site with tens of thousands of requests per day (even Googlebot). I don't think it stopped until I blocked the page in robots.txt
Re:How to crawl a quarter billion webpages in 40 hours (2012) by vidarh on Thursday July 05, 2018 @04:56AM (#17461793)
A well-behaved crawler will be self-limiting in this regard in that they seek to avoid requesting URLs from the same domain too often, and then the better you are at spreading requests over as many domains at possible, the less you'll be affected by such traps.

You can do a lot of other things too, but the above already takes most of the sting out of such traps unless you use a huge number of domains.

Re:How to crawl a quarter billion webpages in 40 hours (2012) by astonex on Thursday July 05, 2018 @04:40AM (#17461744)
Just have a maximum traversal depth