Answer the question
In order to leave comments, you need to log in
How to navigate through pages after authorization (python requests)?
Good afternoon.
With the help of requests I go through authorization on the site, in this part OK.
Then I need to go to another page. After the transition, I get the answer "Message": "Authorization has been denied for this request".
I would be grateful if you could suggest which direction to look in order to go to another page after authorization.
import requests
with requests.Session() as session:
session.post(login_url, data=data)
page = session.get(url)
print(page.content)
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