import requests
data = {'useremail': '***********',
'keys': '#LP9461035552513',
'password':'*********',
'action': 'login'
}
prox = {'http':'https://14.140.131.82:3128'}
headers = {'accept': '*/*',
'user-agent':'Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/13.2b11866 Mobile/16A366 Safari/605.1.15',
'x-requested-with': 'XMLHttpRequest'}
s = requests.Session()
r = s.post('https://nakrutka.by/login.php',proxies=prox,headers=headers,data=data)
print(r.text)
'keys': '#LP9461035552513',
from requests import post
headers = {"user-agent": "pyTHON requests by Ternick"}
data = {"nepomojet": "polnostu sglasen"}
response = post("https://google.com", headers = headers, data = data)
print(response.text)
import requests
headers = {'accept': '*/*',
'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.92 Safari/537.36',
'accept-encoding': 'gzip, deflate, br',
'accept-language': 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7',
'content-length': '77',
'content-type': 'application/x-www-form-urlencoded; charset=UTF-8',
'x-requested-with': 'XMLHttpRequest',
'cookie':''
}
data = {'useremail': 'email',
'password':'parol',
'keys': 'LLV832371718520',
'action': 'login'
}
s = requests.Session()
r = s.post('https://nakrutka.by/requests.php',data=data,headers=headers)
print(r.text)
Данные не верны или вы не прошли проверку системы безопасности. Попробуйте еще раз.
import requests
headers = {'accept': '*/*',
'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.92 Safari/537.36',
'accept-encoding': 'gzip, deflate, br',
'accept-language': 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7',
'content-length': '77',
'content-type': 'application/x-www-form-urlencoded; charset=UTF-8',
'x-requested-with': 'XMLHttpRequest',
'cookie':''
}
data = {'useremail': 'email',
'password':'parol',
'keys': 'LLV832371718520',
'action': 'login'
}
s = requests.Session()
r = s.post('https://nakrutka.by/requests.php',data=data,headers=headers)
print(r.text)
from requests import Session
def login(email, password, hash):
session = Session()
session.headers = {"accept": "*/*",
"content-type": "application/x-www-form-urlencoded; charset=UTF",
"dnt": "1",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-origin",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36",
"x-requested-with": "XMLHttpRequest"
}
response = session.post("https://nakrutka.by/requests.php", data = {"useremail": email, "keys": hash, "password": password, "action": "login"})
return response.text
def main():
print(login("ijfHUISfnuif@gmail.com", "sofpjiohfesef", "O#G8725631001741"))
if __name__ == '__main__':
main()
import requests
from bs4 import BeautifulSoup as bs
headers = {'accept': '*/*',
'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.92 Safari/537.36',
'content-length': '77',
'content-type': 'application/x-www-form-urlencoded; charset=UTF-8',
'x-requested-with': 'XMLHttpRequest',
"dnt": "1",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-origin",
}
hea = {'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.92 Safari/537.36',
'accept-encoding': 'gzip, deflate, br',
'accept-language': 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7',
'upgrade-insecure-requests': '1',
'cache-control': 'max-age=0',
'sec-fetch-dest': 'document',
'sec-fetch-mode': 'navigate',
'sec-fetch-site': 'same-origin',
'sec-fetch-user': '?1'
}
s = requests.Session()
r = s.get('https://nakrutka.by/login.php',headers=hea)
soup = bs(r.content,'lxml')
keys = str(soup.find('input',attrs={'id':'keys'})['value'])
print(keys)
data = {'useremail': '******',
'password':'******',
'keys':keys,
'action': 'login'
}
r = s.post('https://nakrutka.by/requests.php',data=data,headers=headers)
print(r.text)