Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
548
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. import requests
  2. import re
  3.  
  4. url = r'https://antizapret.prostovpn.org/proxy.pac'
  5. response = requests.get(url)
  6. reg = re.compile(r'proxy\.antizapret.*\d')
  7. prox = re.findall(reg, response.text)[0]
  8. proxies = {
  9.     'http': 'http://{0}'.format(prox),
  10.     'https': 'https://{0}'.format(prox),
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement