Sha256: eb0426099955d0b941e7010fd449b7a7401d6b5e7ddddcf93243fbd3dddaaee9

Contents?: true

Size: 366 Bytes

Versions: 2

Compression:

Stored size: 366 Bytes

Contents

require 'cgi'

module PageRankr
  class Indexes < Tracker
    class Bing < Index
      def url(site)
        "http://www.bing.com/search?q=site%3A#{CGI.escape(site)}"
      end
      
      def xpath
        "//span[@class='sb_count']/text()"
      end
      
      def clean(backlink_count)
        super(backlink_count.gsub('1-10', ''))
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
PageRankr-1.7.1 lib/page_rankr/indexes/bing.rb
PageRankr-1.7.0 lib/page_rankr/indexes/bing.rb