Sha256: 4a1c1fe6a192518e3e0f2249d7d46305cb1ed71c3154a2979b3cb83882478433
Contents?: true
Size: 1.91 KB
Versions: 1
Compression:
Stored size: 1.91 KB
Contents
# PageRankr Provides an easy way to retrieve Google Page Rank, Alexa Rank, and backlink counts. ## Exampes ### Backlinks Backlinks are the result of doing a search with a query like "link:www.google.com". The number of returned results indicates how many sites point to that url. `PageRankr.backlinks('www.google.com', :google, :bing) #=> {:google=>161000, :bing=>208000000}` `PageRankr.backlinks('www.google.com', :yahoo) #=> {:yahoo=>256300062}` Valid search engines are: `:google, :bing, :yahoo, :altavista, :alltheweb, :alexa`. ### Ranks `PageRankr.ranks('www.google.com', :alexa, :google) #=> {:alexa=>1, :google=>10}` There are two valid rank trackers supported: `:alexa, :google`. Alexa ranks are descending where 1 is the most popular. If a site has an alexa rank of 0 then the site is unranked. Google page ranks are in the range 0-10 where 10 is the most popular. If a site is unindexed then the rank will be -1. ## Note on Patches/Pull Requests * Fork the project. * Make your feature addition or bug fix. * Add tests for it. This is important so I don't break it in a future version unintentionally. * Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull) * Send me a pull request. Bonus points for topic branches. ## TODO * <del>Get backlink counts for:</del> * <del>Google</del> * <del>Bing</del> * <del>Yahoo!</del> * <del>AltaVista</del> * <del>AllTheWeb</del> * <del>Alexa</del> * <del>Get Google Page Rank</del> * <del>Implement Hashing Algorithm</del> * <del>Get Alexa ranking</del> ## Shout Out Gotta give credit where credits due! * http://github.com/alexmipego/PageRankSharp * http://snipplr.com/view/18329/google-page-range-lookup/ * http://www.sitetoolcenter.com/free-website-scripts/ajax-pr-checker.php ## Copyright Copyright (c) 2010 Allen Madsen. See LICENSE for details.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
PageRankr-1.0.0 | README.md |