项目作者: BaseMax

项目描述 :
Tiny Library for get random proxy (free).
高级语言: Ruby
项目地址: git://github.com/BaseMax/RandomProxyRuby.git
创建时间: 2018-06-26T06:36:27Z
项目社区:https://github.com/BaseMax/RandomProxyRuby

开源协议:GNU General Public License v3.0

下载


RandomProxyRuby

Tiny and Powerful Library for get random proxy (free).

RandomProxy-1.0.0.gem File Size RandomProxy.rb 
Validation Code

Features

  • Compact
  • Free API (2 requests per second)
  • Based on httparty , json

If the API address has changed , This repository will be updated.
use the new version.

Installation

  • $ gem install RandomProxy

Installation depends

  • $ gem install json
  • $ gem install httparty

Samples

To view the full details, run the Example.rb file.

RandomProxy.get()

  1. require 'RandomProxy'
  2. proxy=RandomProxy.get()
  3. if proxy["error"] && proxy["error"] == false then
  4. puts proxy["ip"]
  5. else
  6. puts "Error!"
  7. end

License

RandomProxy is licensed under the GNU General Public License.