Module: ProxyList
- Defined in:
- lib/proxy_list.rb,
lib/proxy_list/version.rb,
lib/proxy_list/site_spys.rb,
lib/proxy_list/user_agents.rb,
lib/proxy_list/site_cybersyndrome.rb,
lib/proxy_list/site_freeproxylists.rb
Defined Under Namespace
Classes: SiteCybersyndrome, SiteFreeproxylists, SiteSpys
Constant Summary collapse
- VERSION =
"1.0.0"- USER_AGENTS =
[ "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:34.0) Gecko/20100101 Firefox/34.0", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.122 Safari/537.36", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/7.1.2 Safari/537.85.11" ]
Class Method Summary collapse
-
.get_lists(country_code = 'US') ⇒ Object
get proxy lists.
Class Method Details
.get_lists(country_code = 'US') ⇒ Object
get proxy lists
26 27 28 29 30 31 |
# File 'lib/proxy_list.rb', line 26 def self.get_lists(country_code='US') proxy_lists = ProxyList::SiteFreeproxylists.new(country_code).proxy_lists proxy_lists.concat(ProxyList::SiteSpys.new(country_code).proxy_lists) proxy_lists.concat(ProxyList::SiteCybersyndrome.new(country_code).proxy_lists) proxy_lists.uniq end |