Closed godfriedmeesters closed 3 years ago
Now there are two proxies
Seems working fine with two proxies in proxies.json and code like this:
const inputData = JSON.parse(
fs.readFileSync("proxies.json")
);
//
var use_proxy = Math.random() < 0.6;
//var use_proxy = false;
const proxies = inputData.proxies;
const proxy_index = Math.floor(Math.random() * proxies.length);
if (use_proxy) {
job.data.params.proxy = proxies[proxy_index];
logger.info("Selected proxy " + proxies[proxy_index]);
}
else { logger.info("No proxy selected") }
I think we safely close this one in the favour of #16
Noted a ban by Opodo web ( see _id with value HR-KiXgBXZp0CmfYs-ov in Kibana).
Would be nice to have more proxies