Advertisement
dereksir

Untitled

Apr 11th, 2024
762
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. # select a random proxy URL
  2. random_proxy = random.choice(proxy_urls)
  3.  
  4. # make a request using the selected proxy
  5. with httpx.Client(proxy=random_proxy) as client:
  6.     r = client.get("https://httpbin.io/ip")
  7.     print(r.text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement