Skip to main content

Browser Cookie Management

Project description

BuildStatus CoverageStatus

Browser Cookie Management

Overview

Firefox and Chrome Cookie management. (Chrome requires SQLite 3.8 or greater.)

Install

pip install cookie-eater

CI tests run on:

  • Python 2.6+

  • Python 3.3+

  • Pypy

Example Usage

import cookie_eater

fox = cookie_eater.FirefoxCookies()
# Automatically uses the DB of the default profile, can specify db=<path>

fox.add_cookie("example.com", "MyCookie", "Cookie contents!")

fox.find_cookies(host="Example")
# [{'host': u'example.com', 'name': u'MyCookie', 'value': u'Cookie contents!'}]

fox.delete_cookie("example.com", "MyCookie")

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page