Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import httpx
- # define your proxy settings
- proxy_url = "http://username:password@216.137.184.253:80"
- # create a client with the specified proxy and credentials
- with httpx.Client(proxy=proxy_url) as client:
- # make requests using the client
- r = client.get("https://httpbin.io/ip")
- print(r.text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement