Answer the question
In order to leave comments, you need to log in
How to login to mail with Python?
Need help logging in to mail.ru. Preferably using the requests library (but it doesn't matter), and without using Api.
Or as an option, any working example of authorization with another site.
Mine doesn't work @[email protected]
import requests
s = requests.Session()
data = {'mailbox__login':'[email protected]', 'mailbox__password':'123456a'}
url = "https://mail.ru"
r = s.post(url, data=data)
r2 = requests.get('https://e.mail.ru/messages/inbox')
print(r2.text)
s.cookies
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question