0.0.8 • Published 9 years ago

luminati-proxy v0.0.8

Weekly downloads
8
License
ISC
Repository
github
Last release
9 years ago

Luminati

Kind: global class

new Luminati(config)

Luminati!!

ParamType
configLuminatiConfig

luminati.getProxy() ⇒ Promise

getProxy is what you call every time you need a new exit node.

Kind: instance method of Luminati
Returns: Promise - Returns promise that resolves with string to use as proxy in your net requests. Note: this promise will perform a DNS lookup the first time it is called, but after should resolve immediately. This is the entire string used as "host" when making http requests!
Example

var request = require('request');
var Luminati = require('luminati');

var luminati = new Luminati({
  username: 'myusername-zone-myzone',
  password: 'mypassword'
});

luminati.getProxy().then(proxy => {
  request({ url: 'http://coolurl.com', proxy: proxy })
   .pipe(toWherever)
});

LuminatiConfig : Object

Kind: global typedef
Properties

NameTypeDefaultDescription
usernameStringluminati username in the form USER-zone-ZONE
passwordStringluminati password
frequencyNumber60000frequency, in ms, that you want to refresh the DNS of the super-proxy you are using.
superProxyLocationStringgbcountry code to use for super proxy location.
exitLocationStringfalsecountry code if you want exit node to be in a specific country. If not provided, will provide exit nodes in random countries.
dnsResolutionStringlocalcan be 'local' or 'remote' - where the final url should have its DNS resolved, locally at the super proxy, or remotes at the exit node.
httpsBooleanfalsewhether you want to use an https proxy url or not.
0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago