Sha256: d8e7134b4239fc548f7fd798346c11411f7b15cb2d850e030818fb5ca308e8b8
Contents?: true
Size: 690 Bytes
Versions: 3
Compression:
Stored size: 690 Bytes
Contents
require File.expand_path('../../rank', __FILE__) require File.expand_path('../google/checksum', __FILE__) module PageRankr class Ranks class Google include Rank def initialize(site) @site = PageRankr::Site(site) @checksum = Checksum.generate("info:#{tracked_url}") super(site) end def supported_components [:subdomain, :path] end def url "http://toolbarqueries.google.com/tbr" end def params {:client => "navclient-auto", :ch => @checksum, :features => "Rank", :q => "info:#{tracked_url}"} end def regex /Rank_\d+:\d+:(\d+)/ end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
PageRankr-3.1.2 | lib/page_rankr/ranks/google.rb |
PageRankr-3.1.1 | lib/page_rankr/ranks/google.rb |
PageRankr-3.1.0 | lib/page_rankr/ranks/google.rb |