Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import re
- url = r'https://antizapret.prostovpn.org/proxy.pac'
- response = requests.get(url)
- reg = re.compile(r'proxy\.antizapret.*\d')
- prox = re.findall(reg, response.text)[0]
- proxies = {
- 'http': 'http://{0}'.format(prox),
- 'https': 'https://{0}'.format(prox),
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement