I
I
Irmax1632021-12-06 21:04:13
Python
Irmax163, 2021-12-06 21:04:13

How to log in to the cinema site using python?

I can't log in to the cinema website through python. After entering the username / password in the browser, you go to your personal account. In python, the code below with the same username/password shows that the user was not found.
What am I doing wrong?
import requests
url = ' https://kinozal-me.appspot.com/takelogin.php ' # mirror address,
datas = {'username': '********',
'password': '** ********' } # login , password
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36' }
s = requests.session()
login = s.post(url, headers=headers, data=datas)
print(login.text)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JiMoon, 2021-12-09
@Jimoon

if you are going to use the program for personal purposes (only you), then you can not be weird and do it with the help of pyautogui, but for some part it is not convenient, I understand.
UPD: do you have an error in the console or is it not entered there? I just went to the site, there are three fields, not 2 (as it should be for login and password (1 field - search if anything))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question