proxy_list = []
with open("proxy.txt") as inp:
for line in inp:
proxy_list.append(line)
for prx in proxy_list:
print(prx)
ses.proxies = prx
ses.get("https://2ip.ru")
soup = BeautifulSoup(r.text, 'lxml')
prx = soup.find('div', {'class' : 'ip'})
proxies = {
'http': 'http://10.10.1.10:3128',
'https': 'http://10.10.1.10:1080',
}