Socket
Socket
Sign inDemoInstall

free-proxy-finder

Package Overview
Dependencies
57
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    free-proxy-finder

Free Proxy Finder


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
13.1 MB
Created
Weekly downloads
 

Readme

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

Last updated on 04 Jan 2023

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc