1.0.5 • Published 4 years ago

revolvingproxy v1.0.5

Weekly downloads
6
License
ISC
Repository
-
Last release
4 years ago

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

NameTypedescription
autoRefreshIntervalNumberInterval in ms to refresh the proxy list
lowProxyThresholdNumberminimum number of valid ips in the list before a refresh
autoClearIntervalNumberInterval in ms to clear the list of bad ips

Fetch a proxy IP

let ip = revolvingProxy.next();

Returning a bad IP

revolvingProxy.fail(ip);