I want to access the cookies programmatically which are stored in the cookies database on the filesystem. I tried to use this code, but it either gives a message
database is locked
when the browser is running, or does not yield any results when the browser has been quit (I assume all cookies are removed on the filesystem then?).
How can I programmatically access all cookies related to a browser session with python? I want to have a script that e.g. lists all the cookies on a terminal. How to do that? (Can be either chrome or firefox).
the problem is because that Firefox uses SQLite to obtain an EXCLUSIVE lock on the database (link)
the solution is to make a backup copy of the database befor read it
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With