import requests
r = requests.get("https://ramziv.com/ip", proxies=dict(
http='socks5://адрес:порт@логин:пароль'
)).text
print(r)
pip install -U requests[socks]
import requests
proxies = {'http': "socks5://server:port"}
r = requests.get('https://ramziv.com/ip', proxies=proxies).text
print(r)