An open API service indexing awesome lists of open source software.

https://github.com/indatawetrust/proxy-sources

Free proxy servers list
https://github.com/indatawetrust/proxy-sources

proxies proxy proxy-checker proxy-server

Last synced: 9 months ago
JSON representation

Free proxy servers list

Awesome Lists containing this project

README

          

[![Travis Build
Status](https://img.shields.io/travis/indatawetrust/proxy-sources.svg)](https://travis-ci.org/indatawetrust/proxy-sources)

proxy list resource: https://github.com/clarketm/proxy-list

# proxy-list
Free proxy servers list

#### install
```
npm i -S proxy-sources
```

#### usage
```js
const ProxyList = require('proxy-sources')
const rp = require('request-promise')

;(async () => {

const pl = await ProxyList();

console.log(pl.list)

/*
[ '125.141.200.14:80',
'125.141.200.36:80',
'125.141.200.15:80',
'125.141.200.7:80',
'125.141.200.38:80',
'191.252.185.161:8090',
'5.196.224.39:8080',
'5.135.164.72:3128' ]
*/

// request usage
const options = {
uri: 'https://api.myip.com',
proxy: `http://${pl.random()}`,
json: true
}

console.log(await rp(options))

// sample
// {"ip":"212.93.119.116","country":"Latvia","cc":"LV"}

})()
```

#### checker and timeout

Checker is off by default. It allows controlling the proxy addresses. Returns proxy addresses. Timeout is 5 seconds by default. You can set it to 1 second to get fast proxy addresses. Set the timeout value in milliseconds.

```js
const ProxyList = require('proxy-sources')
const rp = require('request-promise')

;(async () => {

const pl = await ProxyList({
checker: true,
timeout: 1e3
});
})()
```