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

- old
+ new

@@ -1,14 +1,17 @@ -require 'typhoeus' +require File.expand_path('../../backlink', __FILE__) module PageRankr class Backlinks class Alexa include Backlink - def request - @request ||= Typhoeus::Request.new("http://data.alexa.com/data", - :params => {:cli => 10, :dat => "snbamz", :url => @site.to_s}, :method => :get) + def url + "http://data.alexa.com/data" + end + + def params + {:cli => 10, :dat => "snbamz", :url => @site.to_s} end def xpath "//linksin/@num" end \ No newline at end of file