import requests
link="https://www.instagram.com"
data={
'username': 'user',
'password:': 'password'
}
headers = {
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
"(KHTML, like Gecko) Chrome/98.0.4758.109 Safari/537.36 OPR/84.0.4316.52",
'Referer': 'https://www.instagram.com/'
}
proxies_txt=open("F:/Progects/python/brut/proxies.txt",'r',-1,'utf-8')
for proxies_list in proxies_txt:
proxies = {
'http': proxies_list
}
s = requests.Session()
r = s.post(link, data=data,headers=headers,proxies=proxies, verify=True)
print(r.status_code)