ProxyFetcher returns list of free proxies from various sources.
Add this line to your application's Gemfile:
gem 'proxy_fetcher', git: "[email protected]:bloomrain/proxy_fetcher.git"
And then execute:
$ bundle
Or install it yourself as:
$ gem install proxy_fetcher
To get free proxy list:
ProxyFetcher.list # returns array of ProxyFetcher::Proxy objects
Or you can get random proxy
ProxyFetcher.random_proxy # returns single ProxyFetcher::Proxy object
ProxyFetcher::Proxy contains following fields:
- ip
- port
- ssl - boolean value, true if proxy has ssl
- type - optional information from proxy list provider. Value can be Anonymous / Transparent / etc...
- registered_at - date when proxy was registered it proxy list provider
- country_code
- source - url where proxy was found
- latency
- reliability
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request