Answer the question
In order to leave comments, you need to log in
python requests problem?
I want to login to https://mail.rambler.ru/ using python, but when i enter correct email and password and save result.txt, it gives error 404
import requests
datas = {
'login':'def' ,
'password':'def'
}
login = input('Enter email: ')
passwd = input('Password: ')
datas['login'] = login
datas['password'] = passwd
url = ' https:/ /mail.rambler.ru '
s = requests.Session()
logging = s.post(url, data = datas)
f = open('result.txt','w+')
f.write(logging.text)
f. close()
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