How to get cookies from web-browser with Python?
I created a module to do exactly that, available here: https://bitbucket.org/richardpenman/browsercookie/
Example usage:
import requestsimport browsercookiecj = browsercookie.chrome()r = requests.get('http://stackoverflow.com', cookies=cj)
python3 fork: https://github.com/borisbabic/browser_cookie3
Besides browser-cookie3, you can try https://github.com/n8henrie/pycookiecheat -- it worked for me with Chrome on Ubuntu 20.04 as of April 2021.