lib/page_rankr/indexes/bing.rb in PageRankr-2.0.4 vs lib/page_rankr/indexes/bing.rb in PageRankr-3.0.0
- old
+ new
@@ -1,14 +1,17 @@
-require 'typhoeus'
+require File.expand_path('../../index', __FILE__)
module PageRankr
class Indexes
class Bing
include Index
- def request
- @request ||= Typhoeus::Request.new("http://www.bing.com/search",
- :params => {:q => "site:#{@site.to_s}"})
+ def url
+ "http://www.bing.com/search"
+ end
+
+ def params
+ {:q => "site:#{@site.to_s}"}
end
def xpath
"//span[@class='sb_count']/text()"
end
\ No newline at end of file