Sha256: 94cd0f1096f884d4f0853ec96b1036978d8905e0224b617966f8117c1abdf186

Contents?: true

Size: 449 Bytes

Versions: 3

Compression:

Stored size: 449 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 => "link:#{@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/backlinks/bing.rb
PageRankr-3.0.1 lib/page_rankr/backlinks/bing.rb
PageRankr-3.0.0 lib/page_rankr/backlinks/bing.rb