1.0.5 • Published 5 years ago
revolvingproxy v1.0.5
RevolvingProxy
Simple NodeJS Revolving Proxy
Installation
Using NPM
npm install --save revolvingproxyUsage
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);