Sha256: 7e0f9d182e3f66dd0f865a3ffb8ecc3a145d877e11200b4addd4f0f99876bf12

Contents?: true

Size: 502 Bytes

Versions: 12

Compression:

Stored size: 502 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

      def name
        :backlinks_bing
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
PageRankr-4.6.1 lib/page_rankr/backlinks/bing.rb
PageRankr-4.6.0 lib/page_rankr/backlinks/bing.rb
PageRankr-4.4.1 lib/page_rankr/backlinks/bing.rb
PageRankr-4.4.0 lib/page_rankr/backlinks/bing.rb
PageRankr-4.3.0 lib/page_rankr/backlinks/bing.rb
PageRankr-4.2.1 lib/page_rankr/backlinks/bing.rb
PageRankr-4.2.0 lib/page_rankr/backlinks/bing.rb
PageRankr-4.1.1 lib/page_rankr/backlinks/bing.rb
PageRankr-4.1.0 lib/page_rankr/backlinks/bing.rb
PageRankr-4.0.0 lib/page_rankr/backlinks/bing.rb
PageRankr-3.2.1 lib/page_rankr/backlinks/bing.rb
PageRankr-3.2.0 lib/page_rankr/backlinks/bing.rb