lib/page_rankr/ranks/compete.rb in PageRankr-2.0.2 vs lib/page_rankr/ranks/compete.rb in PageRankr-2.0.3
- old
+ new
@@ -6,18 +6,18 @@
class Ranks
class Compete
include Rank
def xpath
- "//div[@id='rank']/div[@class='number value']/text()"
+ "//div[@class='section score']/h4[2]/text()"
end
def request
@request ||= Typhoeus::Request.new("http://siteanalytics.compete.com/#{CGI.escape(@site.domain)}/")
end
def clean(rank)
- rank.to_s.gsub(',', '').to_i
+ rank.to_s.gsub(/[#,]/, '').to_i
end
end
end
-end
\ No newline at end of file
+end