Retrieve cookies exported by Export cookie JSON File Puppeteer extension
Project description
cookie-puppeteer
Retrieve cookies exported by Export cookie JSON File Puppeteer extension
Installation
pip install cookie-puppeteer
Usage
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cookie-puppeteer-0.0.1.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for cookie_puppeteer-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d20dd6ac7876a3dd38e3e5df95eff99908e515eca1dadcc949c8621f1a08365 |
|
MD5 | 9ee724708427e3efb884aadbd6836e67 |
|
BLAKE2b-256 | 79198b68a2568d849f7937cc25659030d0ba3daad11b9b1cf604d79866c70c53 |