Skip to content

Ruby-wrapper for communicating with the Luminati.io-network.

License

Notifications You must be signed in to change notification settings

JakeAustwick/Luminati

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Luminati

Ruby-wrapper for communicating with the Luminati.io-network.

How to use the wrapper

Add it to your Gemfile:

gem 'luminati'

Basic example:

luminati        =   Luminati::Client.new('username', 'password', zone: 'gen', port: 22225)
connection      =   luminati.get_connection(country: nil, dns_resolution: nil, session: nil)

session_id      =   connection[:session_id]
proxy_user      =   connection[:username]
proxy_password  =   connection[:password]
proxy_ip        =   connection[:ip_address]
proxy_port      =   connection[:port]

Use a custom zone, only use american ips and resolve dns remotely (on the client nodes):

luminati        =   Luminati::Client.new('username', 'password', zone: 'customzone', port: 22225)
connection      =   luminati.get_connection(country: 'us', dns_resolution: :remote, session: nil)

Specify a session to re-use a previously used ip-address:

luminati        =   Luminati::Client.new('username', 'password', zone: 'gen', port: 22225)
connection      =   luminati.get_connection(country: 'us', dns_resolution: :remote, session: '4b21543118c63c5a98397c240bee05ae18d0509d')

Test coverage

Initial test coverage has since 2015-03-20 been added.

More tests will be added continously.

About

Ruby-wrapper for communicating with the Luminati.io-network.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages