Click here to Skip to main content
Click here to Skip to main content

Google Position Monitor

By , 19 Jul 2004
 

Sample Image - Google_Position_Monitor.gif

Introduction

First of all, English is not my first language, so if you find any mistakes bear with me. I started this just to learn how to develop Windows applications using C#. This application simply finds which position your site URL is in for given keywords, in Google search results. I did this when I came across the Free Google monitor application which does the same thing as my application. I decided to test my C# knowledge by writing the application with the same capabilities.

Using the code

This application can be used as it is as a utility to check Google position. Coding is done in a simple way. Submit query for a keyword to Google with the following URL: http://www.google.com/search?q=keyword. The returning page can be parsed and checked against the given site URL to identify the position. Navigating to next pages in the search result is again simpler. Again submitting the same URL with start and end result will return the appropriate pages.

I used many code snippets from Code Project itself to implement the features like retrieving HTML pages from web server and HTML parsing etc. You may find some of the functions useful which can be used as it is. Again, I am not a seasoned C# developer. So if you feel some part of the code can be done in some other way, feel free send me mail.

Points of Interest

I wanted to write this utility with supports different search engines. But Yahoo! and MSN result pages are embedded scripts which need to be resolved to identify the actual URL. If someone has done already this kind of work, I am more happy to see those.

History

This is the first version.. Let me update it once I have enough things to mention here.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Haja
Web Developer
India India
Member
Me, Haja Maidee, people calls me Haja painter by heart, electronics engineer by studies, software engineer by profession. Married and blessed with lovely wife and daughter. Working as Software Dev Manager, in Intel Bangalore for last 5 years, Got 9+ yeaers experince in microsoft technologies for enterprise application integration and business to business integration.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralRating is wrongmemberMember 46397772 Oct '09 - 4:20 
I tried to use this software, but the rate showing is wrong. I'm trying to check on www.google.co.uk
GeneralGood start - More features pleasememberudisun19 Nov '06 - 23:09 
This is something many people will need.
It would be even better with these features:
 
- Import a list of keywords. Drag and drop a text file for example.
- Export results to CSV for excel analysis.
- For each keyword result parse the page count return by google. Example: Results 1 - 13 of about 39,800. In this example, the number 39800.
- At later stage, put it in the system tray, schedule a scan, and alert for change in google position.
- Add few seconds delay between keywords query, to make google think this is a person using google, and not a spider. Make it random delay.
- Make sure Google sees your software as if it were MS IE.
 
Don't bother with google API. What you are doing is better.
 
Good Luck
GeneralA problem/fixmemberJeff Deville21 Jul '04 - 15:19 
You may want to import System.Web, and then modify your url-builder string w/ this line to fix query's that need to be url-encoded. (ie: Laurel & Hardy should become Laurel+%26+Hardy).
 
url += System.Web.HttpUtility.UrlEncode(sKeyWord);
GeneralWant to delete this Any suggestionsmemberHaja20 Jul '04 - 22:31 
After hearing that this is not a leagal technique for doing it, i am thinking of pulling out this code... Any feedback?
GeneralRe: Want to delete this Any suggestionsmemberColin Angus Mackay21 Jul '04 - 0:00 
If you can do the same thing with the Google APIs then I suggest you rewrite it to use the APIs as it is obviously something people are interested in.
 
If it is illegal you should remove the article, if not then leave it and update it with the proper APIs instead of screen scraping.
 

"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
 
The Second EuroCPian Event will be in Brussels on the 4th of September
 
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!


GeneralRe: Want to delete this Any suggestionsmemberpeterchen21 Jul '04 - 1:27 
What about contacting google, explaining what you have in mind (no need to tell them you already have it Wink | ;) ) and ask if/under what ircumstances it would be ok.
 

we are here to help each other get through this thing, whatever it is Vonnegut jr.

sighist || Agile Programming | doxygen

GeneralRe: Want to delete this Any suggestionsmemberpoortl910923 Jul '04 - 8:43 
Isn't Google's motto "We Aren't evil"? I somehow doubt that them going public is going to enable them to keep it that. They will have to succumb to their shareholders needs which is $$$$. I agree with the post about how google disects our pages, and we should be able to do the same. The API is a joke because it limits the amount of queries to 1000. That wouldn't be so bad except they limit your maximum search results to 10! Go figure. Great piece of code if you ask me.
GeneralRe: Want to delete this Any suggestionsmemberlcotfas20 Sep '07 - 10:43 
This is a very good application. Don't worry... it's not illegal. I've made something similar but in PHP & MySQL some time ago.
 
sdvds

GeneralSuggestionmemberBee Master20 Jul '04 - 19:09 
You should use Google Web APIs[^]instead of using screen scraping technique. It has a lot of options to play around with and you don't have to worry about your utility being illegal as someone suggested.
 
Cheers
QuestionIllegal?memberMichaelCoder20 Jul '04 - 8:09 
On Google's website for developers it specifically says that you can not use it to determine a page's rank. I don't know if that only applies when you use the Google API, or if it is always like that.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web03 | 2.6.130523.1 | Last Updated 20 Jul 2004
Article Copyright 2004 by Haja
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid