lib/page_rankr/ranks/alexa_global.rb in PageRankr-4.4.1 vs lib/page_rankr/ranks/alexa_global.rb in PageRankr-4.6.0
- old
+ new
@@ -2,11 +2,11 @@
module PageRankr
class Ranks
class AlexaGlobal
include Rank
-
+
def url
"http://data.alexa.com/data"
end
def params
@@ -18,18 +18,18 @@
#
# 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, '#{tracked_url}')]/@text"
+ "//popularity/@text"
end
def supported_components
- [:domain]
+ [:subdomain]
end
def name
:ranks_alexa_global
end
end
end
-end
\ No newline at end of file
+end