G
G
Goodron2018-04-05 18:57:41
Python
Goodron, 2018-04-05 18:57:41

How to check if authorization on the site has passed?

Hello.
I wrote the authorization code, how to check that the authorization passed?

url = 'https://minergate.com'
login = 'admin'
password = 'admin'
s = requests.Session()
r = s.get(url, auth=(login, password))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeniy _, 2018-04-05
@GeneD88

r.status_code?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question