README.md in PageRankr-4.1.1 vs README.md in PageRankr-4.2.0

- old
+ new

@@ -1,13 +1,15 @@ -# PageRankr [![Build Status](http://travis-ci.org/blatyo/page_rankr.png)](http://travis-ci.org/blatyo/page_rankr) +# PageRankr [![Build Status](https://api.travis-ci.org/blatyo/page_rankr.png)](http://travis-ci.org/blatyo/page_rankr) Provides an easy way to retrieve Google Page Rank, Alexa Rank, backlink counts, and index counts. -__Note: Version ~> 2.0 and ~> 3.0 used typheous internally which caused memory leak issues and failures on windows. 4.0.0 changes the implementation to use a Net::HTTP based library for better compatability.__ +__Note: Version ~> 2.0 and ~> 3.0 used typheous internally which caused memory leak issues and failures on windows. 4.0.0 changes the implementation to use a Net::HTTP based library for better compatability.__ -__Note: Version >= 4.1.0 no longer actively maintains compatibility with Ruby 1.8.X. It will probably still work for the time being.__ +__Note: Version >= 4.1.0 no longer actively maintains compatibility with Ruby 1.8.X. It will probably still work for the time being.__ +__Note: Version >= 4.2.0 no longer actively maintains compatibility with Ruby < 1.9.3. It will probably still work, but you may need to specify older versions for gems this library depends on in your Gemfile.__ + Check out a little [web app][1] I wrote up that uses it or look at the [source][2]. [1]: http://isitpopular.heroku.com [2]: https://github.com/blatyo/is_it_popular @@ -96,24 +98,24 @@ ``` If you don't specify a rank provider, then all of them are used. ``` ruby - PageRankr.ranks('www.google.com', :alexa_us, :alexa_global, :google) - #=> {:alexa_us=>1, :alexa_global=>1, :alexa_country=>1, :google=>10} + PageRankr.ranks('www.google.com', :alexa_us, :alexa_global, :google, :moz_rank, :page_authority) + #=> {:alexa_us=>1, :alexa_global=>1, :alexa_country=>1, :google=>10, :moz_rank => 8, :page_authority => 97} # this also gives the same result PageRankr.ranks('www.google.com') - #=> {:alexa_us=>1, :alexa_global=>1, :alexa_country=>1, :google=>10} + #=> {:alexa_us=>1, :alexa_global=>1, :alexa_country=>1, :google=>10, :moz_rank => 8, :page_authority => 97} ``` You can also use the alias `rank` instead of `ranks`. -Valid rank trackers are: `:alexa_country, :alexa_global, :alexa_us, :google`. To get this you can do: +Valid rank trackers are: `:alexa_country, :alexa_global, :alexa_us, :google, :moz_rank, :page_authority`. To get this you can do: ``` ruby - PageRankr.rank_trackers #=> [:alexa_country, :alexa_global, :alexa_us, :google] + PageRankr.rank_trackers #=> [:alexa_country, :alexa_global, :alexa_us, :google, :moz_rank, :page_authority] ``` Alexa ranks are descending where 1 is the most popular. 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 nil. ## Use it a la carte! @@ -140,11 +142,11 @@ tracker.body #=> "<html><head>..." ``` ## Rate limiting and proxies -One of the annoying things about each of these services is that they really don't like you scraping data from them. In order to deal with this issue, they throttle traffic from a single machine. The simplest way to get around this is to use proxy machines to make the requests. +One of the annoying things about each of these services is that they really don't like you scraping data from them. In order to deal with this issue, they throttle traffic from a single machine. The simplest way to get around this is to use proxy machines to make the requests. In PageRankr >= 3.2.0, this is much simpler. The first thing you'll need is a proxy service. Two are provided [here](https://github.com/blatyo/page_rankr/tree/master/lib/page_rankr/proxy_services). A proxy service must define a `proxy` method that takes two arguments. It should return a string like `user:password@192.168.1.1:50501`. Once you have a proxy service, you can tell PageRankr to use it. For example: @@ -235,6 +237,6 @@ * [Google Page Range Lookup/](http://snipplr.com/view/18329/google-page-range-lookup/) * [AJAX PR Checker](http://www.sitetoolcenter.com/free-website-scripts/ajax-pr-checker.php) ## Copyright -Copyright (c) 2010 Allen Madsen. See LICENSE for details. \ No newline at end of file +Copyright (c) 2010 Allen Madsen. See LICENSE for details.