README.md in PageRankr-3.0.2 vs README.md in PageRankr-3.1.0
- old
+ new
@@ -60,23 +60,23 @@
If you don't specify a search engine, then all of them are used.
``` ruby
# this
PageRankr.indexes('www.google.com')
- #=> {:bing=>2120000, :google=>4860000}
+ #=> {:bing=>2120000, :google=>4860000, :yahoo => 4863000}
# is equivalent to
- PageRankr.indexes('www.google.com', :google, :bing)
- #=> {:bing=>2120000, :google=>4860000}
+ PageRankr.indexes('www.google.com', :google, :bing, :yahoo)
+ #=> {:bing=>2120000, :google=>4860000, :yahoo => 4863000}
```
You can also use the alias `index` instead of `indexes`.
-Valid search engines are: `:google, :bing`. To get this list you can do:
+Valid search engines are: `:google, :bing, :yahoo`. To get this list you can do:
``` ruby
- PageRankr.index_trackers #=> [:bing, :google]
+ PageRankr.index_trackers #=> [:bing, :google, :yahoo]
```
### Ranks
Ranks are ratings assigned to specify how popular a site is. The most famous example of this is the google page rank.
@@ -163,10 +163,10 @@
"http://example.com/"
end
# This method specifies the parameters for the url. It is optional, but likely required for the class to be useful.
def params
- {:q => @site.to_s}
+ {:q => tracked_url}
end
# You can use a method named either xpath, jsonpath, or regex with the appropriate query type
def xpath
"//backlinks/text()"
\ No newline at end of file