[scraper] uses forked rd library

This commit is contained in:
TheBeastLT
2020-04-03 10:28:49 +02:00
parent 2833c9d3a2
commit c2e42634b7
4 changed files with 16 additions and 15 deletions

View File

@@ -16,11 +16,4 @@ function getRandomProxy() {
return undefined;
}
function getProxy() {
if (PROXY_HOSTS && PROXY_HOSTS.length && PROXY_USERNAME && PROXY_PASSWORD) {
return `http://${PROXY_USERNAME}:${PROXY_PASSWORD}@${PROXY_HOSTS[0]}`;
}
return undefined;
}
module.exports = { getRandomUserAgent, getRandomProxy, getProxy };
module.exports = { getRandomUserAgent, getRandomProxy };