Sha256: f700976d2bd0412ec7ff37ecdd3d71214a41bf7b4a3876054610f4bab8216b51

Contents?: true

Size: 278 Bytes

Versions: 2

Compression:

Stored size: 278 Bytes

Contents

require 'cgi'

module PageRankr
  class Backlinks < Tracker
    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

2 entries across 2 versions & 1 rubygems

Version Path
PageRankr-1.4.2 lib/page_rankr/backlinks/google.rb
PageRankr-1.4.0 lib/page_rankr/backlinks/google.rb