lib/page_rankr/backlinks/yahoo.rb in PageRankr-2.0.4 vs lib/page_rankr/backlinks/yahoo.rb in PageRankr-3.0.0

- old
+ new

@@ -1,14 +1,16 @@ -require 'typhoeus' +require File.expand_path('../../backlink', __FILE__) module PageRankr class Backlinks class Yahoo include Backlink - def request - @request ||= Typhoeus::Request.new("http://siteexplorer.search.yahoo.com/search", - :params => {:p => "#{@site.to_s}"}, :method => :get) + def url + "http://siteexplorer.search.yahoo.com/search" + end + def params + {:p => "#{@site.to_s}"} end def xpath "//ul[@id='result-details']/li[2]/a/text()" end \ No newline at end of file