Guest User

Untitled

a guest
Aug 29th, 2020
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1.                 try:
  2.                     proxy_index = random.randint(0, len(self.ip_addresses) - 1)
  3.                     proxys = {"http": self.ip_addresses[proxy_index]}
  4.                     r = session.get(url=href, timeout=(30, 1), proxies=proxys, verify=False)
  5.                 except:
  6.                     r.close()
  7.                     continue
Add Comment
Please, Sign In to add comment