Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async function scraper(){
- //...
- const anonymizedProxy = await proxyChain.anonymizeProxy(proxyUrl);
- // parse the anonymized proxy URL
- const parsedUrl = new URL(anonymizedProxy);
- // extract the host and port
- const proxyHost = parsedUrl.hostname;
- const proxyPort = parsedUrl.port;
- // construct the new proxy string
- const newProxyString = `${proxyHost}:${proxyPort}`;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement