Sha256: e815252f36f20eb32304d2e19169254dbe251c34b5ba28560de8c6a133a93581

Contents?: true

Size: 452 Bytes

Versions: 3

Compression:

Stored size: 452 Bytes

Contents

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

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

      def params
        {:q => "inbody:#{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/backlinks/bing.rb
PageRankr-3.1.1 lib/page_rankr/backlinks/bing.rb
PageRankr-3.1.0 lib/page_rankr/backlinks/bing.rb