Proxy support
Support for SOCKS5 proxies
This may be a good time to move random requests.get calls (example) or have them use the main session to simplify code
Setting a requests.Session proxy list:
session = requests.Session()
session.proxies = {
'http': 'socks5://localhost:1080',
'https': 'socks5://localhost:1080',
}
Setting a proxy for requests.request:
requests.get('https://example.com', proxies={'http': 'socks5://localhost:1080', 'https': 'socks5://localhost:1080'})
To add support for SOCKS proxies to requests, you can do pip install requests[socks]