PrepMe Blog
5Oct/097

Search Engine Ranking Script

Like many companies PrepMe tries to keep its eye on how we rank on search engines for various phrases. I tried to find a simple script to help us gather this data quickly and easily, but unfortunately there wasn't much out there (that didn't cost an arm and a leg).

I threw together this command line php script and class to do just that and it's free to download. It will spit out the rank for each of your keywords on Google, Yahoo, and Bing. Modify checkRank.php with the keywords you care about and your website's URL and then run the script. We're releasing this under the open source GPL 2.0 license so do with it as you see fit!

Download rankChecker

Comments (7) Trackbacks (0)
  1. Just tried to run this script on my FC9 server.
    Nothing happens when I load checkRank.php in my Firefox 9. — rather the page does not load …. I just see “waiting ….” message in the status bar.

    No errors in apache logs.

  2. Hi, I wanted to use this checker, but it is not functionally. Is there someone, who can help me? thanks marek

  3. And here’s a kind of funny thing…

    When I type ’santa fe web design’ into google, cantonbecker.com comes up #7

    But this script reports it as #13

    But if I go into the script and remove the &num=100 from the query string, then it reports it correctly.

    Any idea why the &num=100 would be impacting the response google gives? Weird!

  4. Canton,

    That’s strange. The only thing I can think is that they have a different html template to render long pages or maybe the way they do advertising on those pages is different. Also keep in mind that the way ads are served to this script may be different than the way you would see them in the browser do to a variety of ranking adjustments Google does based on your cookie.

  5. No idea why it would be impacting the results…the placement of the ads may have something to do with it. Or there might be a subtle template issue where the template returned is different for num=100

  6. The script probably doesn’t work now that Google has updated it’s user-interface. It’s an ok skeleton though…you can modify it easily.

  7. This is a command line script, not a php page to open in a browser.


Leave a comment


No trackbacks yet.

Pages

Categories

Blogroll

Archive

Meta