Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8495305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:32:15+00:00 2026-06-10T23:32:15+00:00

I crawl some data from the web, because there is no API. Unfortunately, it’s

  • 0

I crawl some data from the web, because there is no API. Unfortunately, it’s quite a lot of data from several different sites and I quickly learned I can’t just make thousands of requests to the same site in a short while… I want to approach the data as fast as possible, but I don’t want to cause a DOS attack 🙂

The problem is, every server has different capabilities and I don’t know them in advance. The sites belong to my clients, so my intention is to prevent any possible downtime caused by my script. So no policy like “I’ll try million requests first and if it fails, I’ll try half million, and if it fails…” 🙂

Is there any best practice for this? How Google’s crawler knows how many requests it can do in the same while to the same site? Maybe they “shuffle their playlist”, so there are not as many concurrent requests to a single site. Could I detect this stuff somehow via HTTP? Wait for a single request, count response time, approximately guess how well balanced the server is and then somehow make up a maximum number of concurrent requests?

I use a Python script, but this doesn’t matter much for the answer – just to let you know in which language I’d prefer your potential code snippets.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T23:32:16+00:00Added an answer on June 10, 2026 at 11:32 pm

    The google spider is pretty damn smart. On my small site it hits me 1 page per minute to the second. They obviously have a page queue that is filled keeping time and sites in mind. I also wonder if they are smart enough about not hitting multiple domains on the same server — so some recognition of IP ranges as well as URLs.

    Separating the job of queueing up the URLs to be spidered at a specific time from the actually spider job would be a good architecture for any spider. All of your spiders could use the urlToSpiderService.getNextUrl() method which would block (if necessary) unless the next URL is to be spidered.

    I believe that Google looks at the number of pages on a site to determine the spider speed. The more pages that you have the refresh in a given time then the faster they need to hit that particular server. You certainly should be able to use that as a metric although before you’ve done an initial crawl it would be hard to determine.

    You could start out at one page every minute and then as the pages-to-be-spidered for a particular site increases, you would decrease the delay. Some sort of function like the following would be needed:

     public Period delayBetweenPages(String domain) {
         take the number of pages in the to-do queue for the domain
         divide by the overall refresh period that you want to complete in
         if more than a minute then just return a minute
         if less than some minimum then just return the minimum
     }
    

    Could I detect this stuff somehow via HTTP?

    With the modern internet, I don’t see how you can. Certainly if the server is returning after a couple of seconds or returning 500 errors, then you should be throttling way back but a typical connection and download is sub-second these days for a large percentage of servers and I’m not sure there is much to be learned from any stats in that area.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to crawl about a thousand of web sites, from which I'm interested
I use Celery to run web spiders which crawl some data, and after that
I'm writing an application to crawl some websites and scrape data from them. I'm
I need to create a spider that crawls for some data from web site.
Is there a way to crawl all facebook fan pages and collect some information?
There is a web-site to crawl, with POST-authentication. How can I, having login and
I need to extract some information from not very complicated HTML pages in web.
I am trying to crawl wikipedia to get some data for text mining. I
I want to crawl some data out of a phpBB forum i'm a member
Is there a way to crawl some ASP.NET pages that uses doPostBack as events

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.