Socket
Book a DemoInstallSign in
Socket

free-proxy-finder

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

free-proxy-finder

Free Proxy Finder

latest
npmnpm
Version
1.0.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

free-proxy-finder

Prototype for a module that will search lists of available proxies for proxy servers that are reachable in a timely fashion.

Currently consumes two different free proxy lists, then maps them through a function that tests if they work and respond within a given period of time. Holds onto the list for use later.

Usage

easiest:

import { getRandomProxy, getNextProxy, initProxyFinder } from 'free-proxy-finder';
initProxyFinder();

then when you need a proxy, either use

getRandomProxy();

or

getNextProxy();

or, the harder way, the init function does this

    loadAllowList('allowlist.json');
    loadDenyList('denylist.json');
    testProxyCache({
        timeout: 8000,
        verboseLogging: true,
        retestDenies: false,
        saveOnChange: true,
    }).then(() => {
        console.warn('* proxy update completed');
        console.warn('* proxyDenyList', proxyDenyList.length);
        console.warn('* proxyAllowList', proxyAllowList.length);
    });

Please refer to the source code for information as to what other functions and options are available.

FAQs

Package last updated on 04 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.