lib/page_rankr/ranks/alexa_us.rb in PageRankr-3.0.2 vs lib/page_rankr/ranks/alexa_us.rb in PageRankr-3.1.0

- old
+ new

@@ -8,20 +8,24 @@ def url "http://data.alexa.com/data" end def params - {:cli => 10, :dat => "snbamz", :url => @site.to_s} + {:cli => 10, :dat => "snbamz", :url => tracked_url} end # Alexa may sometimes return a result for the incorrect site and thus it is necessary to check if # the results returned are for the site we want. # # For example, slocourts.net returns results for ca.gov, presumably because www.slocourts.ca.gov redirects # to slocourts.net. Clearly something is wrong with how Alexa handles this case and so in the event this # happens we treat the results as if there were no results. def xpath - "//popularity[contains(@url, '#{@site.domain}')]/../reach/@rank" + "//popularity[contains(@url, '#{tracked_url}')]/../reach/@rank" + end + + def supported_components + [:domain] end end end end \ No newline at end of file