Sha256: 0c8d4cda2a2945d98a2459361d240da3027865bb0bce67f9b50cb63425c0d8a3

Contents?: true

Size: 441 Bytes

Versions: 3

Compression:

Stored size: 441 Bytes

Contents

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

module PageRankr
  class Indexes
    class Bing
      include Index
      
      def url
        "http://www.bing.com/search"
      end

      def params
        {:q => "site:#{@site.to_s}"}
      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

3 entries across 3 versions & 1 rubygems

Version Path
PageRankr-3.0.2 lib/page_rankr/indexes/bing.rb
PageRankr-3.0.1 lib/page_rankr/indexes/bing.rb
PageRankr-3.0.0 lib/page_rankr/indexes/bing.rb