Click here to Skip to main content
15,860,972 members
Articles / Web Development / HTML
Article

Google Position Monitor

Rate me:
Please Sign up or sign in to vote.
3.00/5 (6 votes)
19 Jul 20042 min read 70.4K   1.1K   33   13
To find position of a website in Google search results for given keywords.

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



Comments and Discussions

 
GeneralRating is wrong Pin
Member 46397772-Oct-09 4:20
Member 46397772-Oct-09 4:20 
GeneralGood start - More features please Pin
udisun19-Nov-06 23:09
udisun19-Nov-06 23:09 
GeneralA problem/fix Pin
Jeff Deville21-Jul-04 15:19
Jeff Deville21-Jul-04 15:19 
GeneralWant to delete this Any suggestions Pin
Haja20-Jul-04 22:31
Haja20-Jul-04 22:31 
GeneralRe: Want to delete this Any suggestions Pin
Colin Angus Mackay21-Jul-04 0:00
Colin Angus Mackay21-Jul-04 0:00 
GeneralRe: Want to delete this Any suggestions Pin
peterchen21-Jul-04 1:27
peterchen21-Jul-04 1:27 
GeneralRe: Want to delete this Any suggestions Pin
poortl910923-Jul-04 8:43
poortl910923-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 suggestions Pin
lcotfas20-Sep-07 10:43
lcotfas20-Sep-07 10:43 
GeneralSuggestion Pin
Bee Master20-Jul-04 19:09
Bee Master20-Jul-04 19:09 
QuestionIllegal? Pin
MichaelCoder20-Jul-04 8:09
MichaelCoder20-Jul-04 8:09 
AnswerRe: Illegal? Pin
ycomp_ff20-Jul-04 8:14
ycomp_ff20-Jul-04 8:14 
GeneralRe: Illegal? Pin
Anonymous20-Jul-04 14:41
Anonymous20-Jul-04 14:41 
GeneralRe: Illegal? Pin
Obliterator21-Jul-04 2:44
Obliterator21-Jul-04 2:44 

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

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.