Sha256: c46ce0c6cef06b0dcb93c2b74afb80e043476440b8d66cc40dfc51a845b22c89

Contents?: true

Size: 284 Bytes

Versions: 1

Compression:

Stored size: 284 Bytes

Contents

require 'cgi'

module PageRankr
  class Backlinks < Tracker
    class Google < Backlink
      def url(site)
        "http://www.google.com/search?q=link%3A%22#{CGI.escape(site)}%22"
      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.4.3 lib/page_rankr/backlinks/google.rb