class HideMyAss::Proxy::HideMe

Represent one proxy instance from hideme.ru/proxy-list

Public Instance Methods

anonymity() click to toggle source

The level of anonymity in downcase letters. (low, medium, high, …)

@return [ String ]

# File lib/hidemyass/proxy/hide_me.rb, line 49
def anonymity
  @anonymity ||= @row.at_xpath('td[6]').text.strip.downcase!
end
country() click to toggle source

The country where the proxy is hosted in downcase letters.

@return [ String ]

# File lib/hidemyass/proxy/hide_me.rb, line 24
def country
  @country ||= @row.at_xpath('td[3]/div/text()')
                   .text.strip.downcase!.scan(/[[:word:]]+$/).last
end
ip() click to toggle source

The IP of the proxy server.

@return [ String ]

# File lib/hidemyass/proxy/hide_me.rb, line 10
def ip
  @ip ||= @row.at_xpath('td[1]/text()').text.strip
end
last_check() click to toggle source

Time in minutes when its been last checked.

@return [ Int ]

# File lib/hidemyass/proxy/hide_me.rb, line 56
def last_check
  @last_check ||= @row.at_xpath('td[7]/text()').text.scan(/^\d+/)[0].to_i
end
port() click to toggle source

The port for the proxy.

@return [ Int ]

# File lib/hidemyass/proxy/hide_me.rb, line 17
def port
  @port ||= @row.at_xpath('td[2]/text()').text.strip.to_i
end
speed() click to toggle source

The average response time in milliseconds.

@return [ Int ]

# File lib/hidemyass/proxy/hide_me.rb, line 32
def speed
  @speed ||= @row.at_xpath('td[4]/div/div/p/text()')
                 .text.scan(/^\d+/)[0].to_i
end
type() click to toggle source

The network protocol in in downcase letters. (https or http or socks)

@return [ String ]

# File lib/hidemyass/proxy/hide_me.rb, line 41
def type
  @type ||= @row.at_xpath('td[5]/text()').text.strip.split.last.downcase!
end