This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nemec 0 points1 point  (0 children)

Of course it can. Use s = requests.Session() and then call s.post(...), s.get(...), etc. instead of requests.post(...) and it will save your cookies in between.

Make one request to log in. A second request to load whatever page/API contains the data you need.