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
- Host: GitHub
- URL: https://github.com/indatawetrust/proxy-sources
- Owner: indatawetrust
- Created: 2018-09-15T12:10:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T05:09:11.000Z (about 3 years ago)
- Last Synced: 2025-02-06T15:37:41.407Z (11 months ago)
- Topics: proxies, proxy, proxy-checker, proxy-server
- Language: JavaScript
- Homepage:
- Size: 438 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](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
});
})()
```