mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-14 13:41:05 +00:00
Update http.js
This commit is contained in:
parent
25876bd81f
commit
05874f90e5
16
lib/http.js
16
lib/http.js
|
@ -13,21 +13,25 @@ var OS_NAME = SYS.getOS();
|
||||||
var OS_ARCH = SYS.getArch();
|
var OS_ARCH = SYS.getArch();
|
||||||
var DEVICE_UUID = SYS.getUUID();
|
var DEVICE_UUID = SYS.getUUID();
|
||||||
var PROCESS_VERSION = SYS.getProcessVersion();
|
var PROCESS_VERSION = SYS.getProcessVersion();
|
||||||
|
|
||||||
var DEFAULT_USER_AGENT = "WelsonJS/0.2.7 (" + OS_NAME + "; " + OS_ARCH + "; " + PROCESS_VERSION + "; " + DEVICE_UUID + "; abuse@catswords.net)";
|
var DEFAULT_USER_AGENT = "WelsonJS/0.2.7 (" + OS_NAME + "; " + OS_ARCH + "; " + PROCESS_VERSION + "; " + DEVICE_UUID + "; abuse@catswords.net)";
|
||||||
|
|
||||||
// [lib/http] Proxy API services (e.g., ScrapeOps) integration #143
|
|
||||||
// https://github.com/gnh1201/welsonjs/issues/143
|
|
||||||
var AVAILABLE_PROXIES = [
|
var AVAILABLE_PROXIES = [
|
||||||
{
|
{
|
||||||
"type": "stateless",
|
"type": "stateless",
|
||||||
"provider": "scrapeops",
|
"provider": "scrapeops",
|
||||||
"url": "https://proxy.scrapeops.io/v1/?api_key={api_key}&url={url}&render_js={render_js}&residential={residential}&country={country}&keep_headers={keep_headers}"
|
"url": "https://proxy.scrapeops.io/v1/?api_key={api_key}&url={url}&render_js={render_js}&residential={residential}&country={country}&keep_headers={keep_headers}",
|
||||||
|
"documentation": "https://scrapeops.io?fpr=namhyeon75"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "stateful",
|
"type": "stateful",
|
||||||
"provider": "scrapeops",
|
"provider": "scrapeops",
|
||||||
"url": "http://scrapeops:{api_key}@residential-proxy.scrapeops.io:8181"
|
"url": "http://scrapeops:{api_key}@residential-proxy.scrapeops.io:8181",
|
||||||
|
"documentation": "https://scrapeops.io?fpr=namhyeon75"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "stateless-jsonrpc2",
|
||||||
|
"provider": "gnh1201/caterpillar",
|
||||||
|
"url": "http://localhost:5555",
|
||||||
|
"documentation": "https://github.com/gnh1201/caterpillar"
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user