Sha256: af904e4c80c6723fe6aa6e9bd5dbcafb0a4e2c5dd5bc98cb8f9f060d2265b818
Contents?: true
Size: 452 Bytes
Versions: 3
Compression:
Stored size: 452 Bytes
Contents
require 'typhoeus' require 'cgi' require 'nokogiri' module PageRankr class Ranks class Compete include Rank def xpath "//div[@id='rank']/div[@class='number value']/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 end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
PageRankr-2.0.2 | lib/page_rankr/ranks/compete.rb |
PageRankr-2.0.1 | lib/page_rankr/ranks/compete.rb |
PageRankr-2.0.0 | lib/page_rankr/ranks/compete.rb |