Integrate pagerank and alexa into site?

Discussion in 'Programming' started by adamjblakey, Mar 12, 2007.

  1. #1
    Hi,

    What i need to do is when a link is added to my site i need next to it to say the page rank and alexa rank. How would i go about doing this?

    Cheers,
    Adam
     
    adamjblakey, Mar 12, 2007 IP
  2. sadcox66

    sadcox66 Spirit Walker

    Messages:
    496
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #2
    sadcox66, Mar 13, 2007 IP
  3. DeViAnThans3

    DeViAnThans3 Peon

    Messages:
    785
    Likes Received:
    83
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Do you want it to appear as text or as image?

    I mainly work with PHP to do this. Here comes some info.

    For pagerank, you must make a call to google's servers; how it works with alexa is not sure, but thats quite easy to find too probably.
    A pagerank script and sample code for getting alexa

    Cheers,
    hans :)
     
    DeViAnThans3, Mar 13, 2007 IP
    Aragorn likes this.
  4. adamjblakey

    adamjblakey Active Member

    Messages:
    1,121
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    80
    #4
    Thanks for the replies that is great, i will try out both your methods tonight and give green rep to the one i find most useful.
     
    adamjblakey, Mar 13, 2007 IP
  5. adamjblakey

    adamjblakey Active Member

    Messages:
    1,121
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    80
    #5
    Hi,

    Right i have used the page rank file which now at point of adding to the DB query's the pagerank file and adds the PR of the website.

    This works fine but my only problem is with the Alexa rank which does not seem to play ball i would like to set this up in the same manner so that i can add the alexa rank at the same time.

    Any ideas?

    Cheers,
    Adam
     
    adamjblakey, Mar 14, 2007 IP
  6. Matt R.

    Matt R. Peon

    Messages:
    20
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Try using the widget for alexa, the javascript is included in this link

    http://www.everythingkitchens.com/increase_alexa_rankings.html
     
    Matt R., Mar 14, 2007 IP
  7. adamjblakey

    adamjblakey Active Member

    Messages:
    1,121
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    80
    #7
    This would be fine but i need the alexa rank return to my script to allow insertion in the DB.
     
    adamjblakey, Mar 14, 2007 IP
  8. Aragorn

    Aragorn Peon

    Messages:
    1,491
    Likes Received:
    72
    Best Answers:
    1
    Trophy Points:
    0
    #8
    Hey, useful scripts. Thanks a lot :)
     
    Aragorn, Mar 14, 2007 IP
  9. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #9
    When collecting Pagerank data, make sure to hit multiple datacenters (not all datacenters are correct)
     
    ccoonen, Mar 14, 2007 IP
  10. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #10
    Barti1987, Mar 14, 2007 IP
  11. adamjblakey

    adamjblakey Active Member

    Messages:
    1,121
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    80
    #11
    That is great azizny, just what i am after :)
     
    adamjblakey, Mar 15, 2007 IP
  12. greatlogix

    greatlogix Active Member

    Messages:
    664
    Likes Received:
    13
    Best Answers:
    1
    Trophy Points:
    85
    #12
    Hey be careful using above stated scripts. Some people says that making any query to get page rank from google is illegal and google may ban your site and IP.
     
    greatlogix, Mar 15, 2007 IP
  13. adamjblakey

    adamjblakey Active Member

    Messages:
    1,121
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    80
    #13
    Is this correct? Anyone?
     
    adamjblakey, Mar 15, 2007 IP
  14. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #14
    Yup, Trust me, do NOT just sit there and Troll their datacenters for PR ;)

    They will catch on and block your IP... only temporarily at first...
     
    ccoonen, Mar 15, 2007 IP
  15. adamjblakey

    adamjblakey Active Member

    Messages:
    1,121
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    80
    #15
    Well i plan on using this when someone adds there website to my site it stores there PR and Alexa rank into the database. Then when the user logs in to their control panel it will check at the point if it has changed and update.

    Will this cause a problem or not? Shall i but a check so that it only checks once a week to update their pr and alexa?
     
    adamjblakey, Mar 16, 2007 IP
  16. joesgraphics

    joesgraphics Peon

    Messages:
    206
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Many severs ips get blocked from searching the pagerank datacenters ther is away to get around this is useing curl. There are some scripts out there that use curl aswell that are free and some of them evon saying the pagerank is clalled from google.co.uk so they cant realy block there own ips.
     
    joesgraphics, Mar 16, 2007 IP