1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Get PR via API?

Discussion in 'Google API' started by Phil Tanny, Jan 27, 2005.

  1. #1
    Is it possible to write an app using Google API that will find the Page Rank of each of the top 10 ten listings?

    I'm guessing yes, can anyone point to further details?

    Many thanks.
     
    Phil Tanny, Jan 27, 2005 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    No, you cannot get PageRank with the API.
     
    digitalpoint, Jan 27, 2005 IP
  3. nevetS

    nevetS Evolving Dragon

    Messages:
    2,544
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    135
    #3
    I thought there was a formula for guessing page-rank. I don't know what it is, but I thought that is what was used by the keyword tracking tool and others like the pr googlebar. I've never seen the formula, but I've seen a lot of references to the idea around.
     
    nevetS, Jan 27, 2005 IP
  4. riziko

    riziko Peon

    Messages:
    189
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I wonder how this works then? :confused:
     
    riziko, Jan 27, 2005 IP
  5. tomecki

    tomecki Peon

    Messages:
    369
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can get at hotscripts "PHP Google PageRank Calculator". It can "find the Google Page Rank for any URL by calculating the checksum and requesting the PR from Google's servers."

    The url for this:
    http://hotscripts.com/Detailed/37856.html

    The hotscripts site is a great site to find some goodies :).
     
    tomecki, Jan 27, 2005 IP
  6. Phil Tanny

    Phil Tanny Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks guys, I appreciate it.

    Here's another site that has figured out how to get Page Rank data:
    http://prsearch.net

    I'm writing a keyword analyzer and want to programmatically obtain the PageRank of each of the top 10 listings for a list of keywords.

    So, I need the top 10 results, and the PageRank of each listing. And I need to do this over and over for a list of keywords.

    If you can't get PR via API, how is it done? I see a number of sites doing it, and they must be getting the Page Rank data from Google somehow, given that Google is the source of that data, right? Or no?

    I can grab this data from other sites, but I'd rather get it from Google under their TOS.

    Thanks for the discussion, I appreciate any suggestions.
     
    Phil Tanny, Jan 28, 2005 IP
  7. nevetS

    nevetS Evolving Dragon

    Messages:
    2,544
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    135
    #7
    You can e-mail the author of the hotscript script to find out from him. It says in their documentation that they calculate based on a checksum as well. The code is a bit of a mish mash. I changed the "eval" to an "echo" statement to get it to spit out the code, but it was pretty unreadable. They've taken pains to obfuscate it to the point where I would just send them an e-mail if I was really interested.
     
    nevetS, Jan 28, 2005 IP
  8. tomecki

    tomecki Peon

    Messages:
    369
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I can write this tool - it is a piece of cake. All you have to do is query google and get PR for all the websities.
     
    tomecki, Jan 29, 2005 IP
  9. deleon

    deleon Well-Known Member

    Messages:
    265
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    118
    #9
    I think what Google license does not allow use any script for extracting PR for sites and sites, using this script may be banned.
     
    deleon, Feb 15, 2005 IP
  10. nevetS

    nevetS Evolving Dragon

    Messages:
    2,544
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    135
    #10
    I've never seen an open script that does this, so the knowledge is held pretty tight within the group of guys who know how to do it. If one of you guys can do it, the community would appreciate a posting. It would probably lead to a lot of new free tools out there.

    I'm sure it's one of the reasons that places like digital point get frequented - because they provide easy access to the data.
     
    nevetS, Feb 15, 2005 IP
  11. deleon

    deleon Well-Known Member

    Messages:
    265
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    118
    #11
    I emailed to you a PHP script for extracting Google PR.
     
    deleon, Feb 15, 2005 IP
  12. nevetS

    nevetS Evolving Dragon

    Messages:
    2,544
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    135
    #12
    yeah, unfortunately that one uses a bit of a proprietary interface so the code isn't easy to replicate. The author does state that they'll make the source available, but I haven't emailed them, and probably won't given that I use digital point to keep track of my PR rankings. I just mentioned what I did in my previous post because there are plenty of other people here who would consider the code valuable.

    To pass on the info - you can e-mail for the source code for the PR script. No details on licensing of the source code in the readme.
     
    nevetS, Feb 15, 2005 IP
  13. deleon

    deleon Well-Known Member

    Messages:
    265
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    118
    #13
    It's bad. I send sources to you.
     
    deleon, Feb 16, 2005 IP
  14. nevetS

    nevetS Evolving Dragon

    Messages:
    2,544
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    135
    #14
    Ha...

    I'm a programmer by trade... not a php programmer, but I've done some complex stuff in my time. This seems cryptic to me.

    http://www.google.com/search?client=navclient-auto&ch=6$ch&ie=UTF-8&oe=UTF-8&features=Rank&q=info%3a(insert url here)
    seems to be the key, but that page shows up as forbidden when I go there directly from a browser. There is a hash returned as part of the forbidden page, so maybe that's what to look for. I really don't know.

    ----
    Hmm... after looking at the forbidden page, it seems that the hash changes every page view. Maybe big G disabled the page because of this script... who knows. I haven't actually uploaded the script myself to test it, I just tried getting to the url from my browser.
     
    nevetS, Feb 16, 2005 IP
  15. deleon

    deleon Well-Known Member

    Messages:
    265
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    118
    #15
    You can call function getPR("http://www.mysite.com") from pagerank.php module and it result will be PR for site "http://www.mysite.com".
     
    deleon, Feb 16, 2005 IP
  16. njurkovi

    njurkovi Guest

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    This script always returns PR of 8, regardless of the site ??
     
    njurkovi, Feb 19, 2005 IP
  17. deleon

    deleon Well-Known Member

    Messages:
    265
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    118
    #17
    No. I checked results of this script, all is OK.
     
    deleon, Feb 19, 2005 IP
  18. xxclixxx

    xxclixxx Peon

    Messages:
    28
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #18
    nevets.. the reason you are getting the forbidden page is because you didn't pass the url correctly .. the $ch variable is a checksum of the $url variable. Google changes the checksum periodically to prevent the automated scripts. Read more:

    http://www.mobileread.com/forums/showthread.php?t=1670&page=12&pp=15
     
    xxclixxx, Mar 17, 2005 IP
  19. Golgotha

    Golgotha Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #19
    The problem with the PHP code is that it's server-side so Google would know who is hitting them - hit them enough times and they may hit back.

    What you really need is client-side code (like Java) that way Google would have no idea - to them it would simply look like a toolbar was used...
     
    Golgotha, Mar 28, 2005 IP
  20. gford

    gford Peon

    Messages:
    1,188
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #20
    and where does one get the client-side? any more on this?

    How does DP/seochat/mcdar etc do it?
     
    gford, May 30, 2005 IP