Advertisement
dereksir

Untitled

Apr 11th, 2024
939
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1. # import the necessary libraries
  2. import httpx
  3. import random
  4.  
  5. # define your proxy list
  6. proxy_urls = [
  7.     "http://20.210.113.32:8123",
  8.     "http://47.56.110.204:8989",
  9.     "http://50.174.214.216:80",
  10.     # add more proxy URLs as needed
  11. ]
  12.  
  13. # select a random proxy URL
  14. random_proxy = random.choice(proxy_urls)
  15.  
  16. # make a request using the selected proxy
  17. with httpx.Client(proxy=random_proxy) as client:
  18.     r = client.get("https://www.amazon.com/Lumineux-Teeth-Whitening-Strips-Treatments-Enamel-Safe/dp/B082TPDTM2/?th=1")
  19.     print(r.text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement