Advertisement
dereksir

Untitled

Apr 11th, 2024 (edited)
845
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. import httpx
  2.  
  3. # define your proxy settings
  4. proxy_url = "http://username:password@216.137.184.253:80"
  5.  
  6. # create a client with the specified proxy and credentials
  7. with httpx.Client(proxy=proxy_url) as client:
  8.     # make requests using the client
  9.     r = client.get("https://httpbin.io/ip")
  10.  
  11. print(r.text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement