Skip to main content

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

Release files for cookie-puppeteer 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cookie-puppeteer 0.0.1
File Size Uploaded
cookie-puppeteer-0.0.1.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cookie-puppeteer 0.0.1
File Interpreter ABI Platform
cookie_puppeteer-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.2 kB

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page