Sha256: 99519b42eafd3a962dc04c399faf2083fd0f9a8c231481723f66a09413e89173

Contents?: true

Size: 268 Bytes

Versions: 1

Compression:

Stored size: 268 Bytes

Contents

require 'cgi'

module PageRankr
  class Backlinks
    class Google < Backlink
      def url(site)
        "http://www.google.com/search?q=link%3A#{CGI.escape(site)}"
      end
      
      def xpath
        "//div[@id='resultStats']/text()"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
PageRankr-1.3.0 lib/page_rankr/backlinks/google.rb