Guest User

Download Bandwidth is too high

a guest
Feb 20th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.57 KB | None | 0 0
  1. import random, requests
  2.  
  3. username = '...-customer-....-zone-residential'
  4. password = 'cc5*****0a6'
  5. port = 22225
  6. session_id = random.random()
  7.  
  8. super_proxy_url = ('http://%s-session-%s:%s@zproxy.lum-superproxy.io:%d' % (username, session_id, password, port))
  9. proxy_handler = { 'http': super_proxy_url, 'https': super_proxy_url }
  10.  
  11. session = requests.Session()
  12. session.proxies.update(proxy_handler)
  13.  
  14. # [ ... ] populate session with headers and cookies
  15.  
  16. for i in range(0, 1000): # Example multiple req
  17.     response = session.post("https://link_for_reqC", data={ "data": 1 })
Add Comment
Please, Sign In to add comment