https://github.com/cdgriffith/cookieeater
Browser Cookie Management
https://github.com/cdgriffith/cookieeater
Last synced: 3 months ago
JSON representation
Browser Cookie Management
- Host: GitHub
- URL: https://github.com/cdgriffith/cookieeater
- Owner: cdgriffith
- License: mit
- Created: 2017-01-18T03:35:16.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-11T04:18:47.000Z (almost 9 years ago)
- Last Synced: 2025-01-15T17:20:39.212Z (12 months ago)
- Language: Python
- Size: 20.5 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
CookieEater
===========
|BuildStatus| |CoverageStatus|
**Browser Cookie Management**
Overview
--------
Firefox and Chrome Cookie management. (Chrome requires SQLite 3.8 or greater.)
Install
-------
.. code::
pip install cookie-eater
CI tests run on:
* Python 2.6+
* Python 3.3+
* Pypy
Example Usage
~~~~~~~~~~~~~
.. code:: python
import cookie_eater
fox = cookie_eater.FirefoxCookies()
# Automatically uses the DB of the default profile, can specify db=
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")
.. |CoverageStatus| image:: https://coveralls.io/repos/github/cdgriffith/CookieEater/badge.svg?branch=master
:target: https://coveralls.io/github/cdgriffith/CookieEater?branch=master
.. |BuildStatus| image:: https://travis-ci.org/cdgriffith/Reusables.svg?branch=master
:target: https://travis-ci.org/cdgriffith/Reusables