Sha256: 5565c37c02926a3e274ac042334a9112ca695d272b42e699dc716373d7b6e65d

Contents?: true

Size: 490 Bytes

Versions: 12

Compression:

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

      def name
        :indexes_bing
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

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