I know it's possible to use requests.Session() from the requests module to handle cookies. Instead, I want to know if there's a way to obtain login authentication by letting the user login themselves through a browser and then retrieving their session cookies after successful login.
Asked
Active
Viewed 143 times
0
-
Have you considered using mechanize? – Paula Livingstone Oct 29 '17 at 09:21
-
This post will help https://stackoverflow.com/questions/606072/python-how-to-dump-cookies-of-a-mechanize-browser-instance – Paula Livingstone Oct 29 '17 at 09:22
-
Or this one: [accessing-firefox-3-cookies-in-python](https://stackoverflow.com/questions/4602048/accessing-firefox-3-cookies-in-python/33078599#33078599), for FF – t.m.adam Oct 29 '17 at 09:25
-
Thank you, I will check it out – asdf Oct 29 '17 at 09:49