Sha256: 824da3ec6a514f2c2009ab5befb917c4ad3b60ee05f0f01be065a46e2ff01993

Contents?: true

Size: 344 Bytes

Versions: 3

Compression:

Stored size: 344 Bytes

Contents

require File.expand_path('../../backlink', __FILE__)

module PageRankr
  class Backlinks
    class Google
      include Backlink

      def url
        "http://www.google.com/search"
      end

      def params
        {:q => "link:#{@site.to_s}"}
      end

      def xpath
        "//div[@id='resultStats']/text()"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
PageRankr-3.0.2 lib/page_rankr/backlinks/google.rb
PageRankr-3.0.1 lib/page_rankr/backlinks/google.rb
PageRankr-3.0.0 lib/page_rankr/backlinks/google.rb