in Education by
I am trying to create a windows service. The purpose of service is to pick up urls from a database and check their page rank from google. The purpose is to catch any one faking their page ranks. I found some code at http://www.codeproject.com/KB/aspnet/Google_Pagerank.aspx and used it. Now here is the code public static int GetPageRank() { string file = "http://toolbarqueries.google.com/search?q=info:codeproject.com"; try { //Request PR from Google WebRequest request = WebRequest.Create(file); WebResponse response = request.GetResponse(); StreamReader reader = new StreamReader(response.GetResponseStream()); string data = reader.ReadToEnd(); reader.Close(); response.Close(); //Parse PR from string int pageRank = -1; if (data.IndexOf(':') != -1) { data = data.Substring(data.LastIndexOf(':') + 1); } int.TryParse(data, out pageRank); return pageRank; } catch (Exception ex) { MessageBox.Show(ex.Message); return -1; } } Now what is happening is this when this method is called after some tries like 100 tries i start getting following exception. "The remote server returned an error: (503) Server Unavailable". I have done some research and i have seen a related question on stack overflow as well. Apparently google stops serving requests if to many of them originate from a same ip. Are there any work arounds to it that will enable me to check several thousand pageranks in say two hours or three hours. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Are there any work arounds to it that will enable me to check several thousand pageranks in say two hours or three hours[?] Nope. You're simply requesting too much data. There might be a JSON or XML API to get batch responses, but I am not aware of any from Google.

Related questions

0 votes
    http://www.google.com/search?q=talkjarvis In the above URL which one is the argument which is used ... Answers, Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    I would like to get the exit code of my remote command. It's normally pretty easy, but I need ... -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ubuntu@$ip_server bash...
asked Jun 1, 2022 in Education by JackTerrance
0 votes
    "The binary you uploaded was invalid. The key CFBundleVersion in the Info.plist file must contain a higher ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 27, 2022 in Education by JackTerrance
0 votes
    I am asking this in very general sense. Both from cloud provider and cloud consumer's perspective. Also the ... Server like Biztalk? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I've implemented a windows deskband (using the windows SDK sample) and need a way to communicate (one ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 28, 2022 in Education by JackTerrance
0 votes
    Error:Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException: org.gradle. ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 20, 2022 in Education by JackTerrance
0 votes
    Is there a indexing plugin for GDS that allows for source code search? I see some for specific types ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 13, 2022 in Education by JackTerrance
0 votes
    What is Search Console and how to link with Google Analytics? ...
asked Oct 3, 2020 in Technology by JackTerrance
0 votes
    What is a Search Depth in Google Analytics? ...
asked Oct 3, 2020 in Technology by JackTerrance
0 votes
    What is a Search Depth in Google Analytics?...
asked Oct 3, 2020 in Technology by JackTerrance
0 votes
    I am beginner of JAVA and JSP. I am doing semester project on appengine. I have deployed project and ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jan 14, 2022 in Education by JackTerrance
0 votes
    Which of the following strategies have higher control on sites/pages getting listed in Google SERPs? (1)Both the options (2)SEO (3)SEM...
asked May 31, 2021 in Technology by JackTerrance
0 votes
    Full form of TTP is ____________. A. Tactics, techniques and process B. Tactics, techniques and procedures C. Tactics, technology and process D. Tactics, technology and procedures...
asked Feb 27, 2023 in Technology by JackTerrance
0 votes
    I have an angular 7 project and I'm using Angular universal. Everything is working fine except when I ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 30, 2022 in Education by JackTerrance
...