Socket
Socket
Sign inDemoInstall

gimmeproxy-request

Package Overview
Dependencies
112
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gimmeproxy-request

Automatically make request through random proxy using https://gimmeproxy.com service


Version published
Weekly downloads
7
decreased by-41.67%
Maintainers
1
Install size
9.87 MB
Created
Weekly downloads
 

Readme

Source

gimmeproxy-request [beta]

Make request through random proxy using https://gimmeproxy.com service.

This library automatically collects proxies from GimmeProxy in the background. Each request is routed through random proxy and retried automatically if needed.

This is wrapper around request library, any request options should work just fine.

Allows you to pass custom GimmeProxy api_key, query, retry count and test function.

How to use:

npm install --save gimmeproxy-request
const setup = require('gimmeproxy-request').setup;
const request = require('gimmeproxy-request').request;

setup({
  api_key: 'your api key', // required
  query: 'supportsHttps=true&anonymityLevel=1&websites=amazon&maxCheckPeriod=600', // additional gimmeproxy query parameters
  retries: 5, // max retries before fail
  test: (body, response) => body.indexOf('captcha') === -1 && response.statusCode === 200 // test function
});

request('https://example.com', {
  timeout: 10000 // additional request parameters, see https://github.com/request/request
},
function(err, res, body) {
  console.log('err', err)
  console.log('res', res)
  console.log('body', body)
  process.exit()
});

FAQs

Last updated on 27 Jul 2018

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