Sha256: 8fb3bb5acda64e21c29a1d062222f530eeb9381aadec4cf43622c764753ceb1d

Contents?: true

Size: 569 Bytes

Versions: 1

Compression:

Stored size: 569 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)
        @checksum = Checksum.generate(site.to_s)
        
        super(site)
      end

      def url
        "http://toolbarqueries.google.com/tbr"
      end

      def params
        {:client => "navclient-auto", :ch => @checksum, :features => "Rank", :q => "info:#{@site.to_s}"}
      end

      def regex
        /Rank_\d+:\d+:(\d+)/
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
PageRankr-3.0.0 lib/page_rankr/ranks/google.rb