https://github.com/simatwa/cookie-puppeteer
Retrieve cookies exported by Export cookie JSON File Puppeteer extension
https://github.com/simatwa/cookie-puppeteer
Last synced: 9 months ago
JSON representation
Retrieve cookies exported by Export cookie JSON File Puppeteer extension
- Host: GitHub
- URL: https://github.com/simatwa/cookie-puppeteer
- Owner: Simatwa
- License: mit
- Created: 2024-02-25T12:55:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-25T14:48:25.000Z (over 2 years ago)
- Last Synced: 2025-06-15T16:17:36.486Z (12 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cookie-puppeteer
Retrieve cookies exported by Export cookie JSON File Puppeteer extension
# Installation
```sh
pip install cookie-puppeteer
```
# Usage
```python
from cookie_puppeteer import Puppeteer
cookies = Puppeteer("/home/smartwa/Downloads/gemini.google.com.cookies.json")
print(cookies.get("AEC"))
# Ae3NU9ORz35qy6ucvgm9D3U161kwUayh0dj*********
```
Console
`$ cookie-puppeteer --help` or `$ cpt -h`
```
usage: cookie-puppeteer [-h] [-v] [-k [KEY ...]] [-d [DEFAULT ...]]
[-i INDENT] [--whole]
PATH
Retrieve cookies exported by Export cookie JSON File Puppeteer extension
positional arguments:
PATH Path to cookie file
options:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-k [KEY ...], --key [KEY ...]
Set cookie value of this key
-d [DEFAULT ...], --default [DEFAULT ...]
Default cookie value incase of None
-i INDENT, --indent INDENT
Stdout all cookies with this indentation - 4
--whole Stdout whole cookie contents
```