0.0.13 • Published 8 years ago

punch-proxy-manager v0.0.13

Weekly downloads
44
License
-
Repository
-
Last release
8 years ago

punch-proxy-manager

Return proxy

Config

  • refreshTime - email address that used to send emails
  • services
  • include - array of proxy services to use
  • exclude - array of proxy services to not use
  • valid valuesGIMMI_PROXY, HIDE_MY_ASS, IN_CLOCK, PROXY_SERVER_LIST, UK_PROXY, US_PROXY

Method

  • get - get a valid proxy
  • blacklist - mark proxy as invalid
  • start - start the proxy manager with auto refresh
  • stop - stop auto refresh

Usage

'use strict';

const ProxyManager = require('./index');

const proxyManager = new ProxyManager({refreshTime : 100000, services: {include: [ProxyManager.SERVICE_NAMES.GIMMI_PROXY]}});
proxyManager.start()
.then(() => {
  setInterval(() => {
    let proxy = proxyManager.get();
    if (proxy){
      proxyManager.blacklist(proxy.ip);
    }
    console.log(proxy);
  }, 1000);
})
0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.8

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago