revolvingproxy
v1.0.5
Published
Simple NodeJS Revolving Proxy
Downloads
4
Readme
RevolvingProxy
Simple NodeJS Revolving Proxy
Installation
Using NPM
npm install --save revolvingproxy
Usage
Import the library
const RevolvingProxy = require('revolvingproxy')
Spawning the list
let revolvingProxy = await RevolvingProxy({
autoRefreshInterval : 600000,
lowProxyThreshold : 25,
autoClearInterval : 900000
});
Options
Name | Type | description -----|------|------------ autoRefreshInterval | Number | Interval in ms to refresh the proxy list lowProxyThreshold | Number | minimum number of valid ips in the list before a refresh autoClearInterval | Number | Interval in ms to clear the list of bad ips
Fetch a proxy IP
let ip = revolvingProxy.next();
Returning a bad IP
revolvingProxy.fail(ip);