Advertisement
dereksir

Untitled

Oct 2nd, 2023 (edited)
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. # Randomly select a proxy from the list
  2. proxy_url = random.choice(proxy_list)
  3.  
  4. # Create a Proxy Manager instance using the random proxy
  5. proxy = urllib3.ProxyManager(proxy_url)
  6.  
  7. # Make GET request through the proxy
  8. response = proxy.request("GET", "http://httpbin.io/ip")
  9.  
  10. #Print the returned data
  11. print(response.data)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement