And, just to add, within requests you should learn to use sessions and cookies.
I've seen cookiejar used:
https://stackoverflow.com/questions/6878418/putting-a-cookie-in-a-cookiejar