Advertisement
dereksir

Untitled

Mar 6th, 2024 (edited)
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. async function scraper(){
  2.     //...
  3.  
  4.     const anonymizedProxy = await proxyChain.anonymizeProxy(proxyUrl);
  5.  
  6.     // parse the anonymized proxy URL
  7.     const parsedUrl = new URL(anonymizedProxy);
  8.  
  9.     // extract the host and port
  10.     const proxyHost = parsedUrl.hostname;
  11.     const proxyPort = parsedUrl.port;
  12.  
  13.     // construct the new proxy string
  14.     const newProxyString = `${proxyHost}:${proxyPort}`;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement