Sha256: 23161d435589e3a84939e2759ae00fececaa50a44cfd982d3cd6374d01915dcf

Contents?: true

Size: 442 Bytes

Versions: 3

Compression:

Stored size: 442 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:#{tracked_url}"}
      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.1.2 lib/page_rankr/indexes/bing.rb
PageRankr-3.1.1 lib/page_rankr/indexes/bing.rb
PageRankr-3.1.0 lib/page_rankr/indexes/bing.rb