Skip to main content

CookieJar for browsers

Project description

https://badge.fury.io/py/browsercookiejar.svg

browsercookiejar is a Python CookieJar set for Chrome, Firefox and MSIE.

Requirements

  • pycrypto for Chrome on Linux

Setup

$ pip install browsercookiejar

Usage

Run this code, logging in to Google on Chrome:

import re
import urllib2
import browsercookiejar

cj = browsercookiejar.ChromeCookieJar()
cj.load()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
body = opener.open('http://www.google.com').read()
account = re.search(r'>([^>]+@gmail\.com)', body).group(1)

print 'Your account is', account

Changelog

0.1 (2014-08-30)

  • Initial release

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

browsercookiejar-0.1.tar.gz (4.9 kB view details)

Uploaded Source

File details

Details for the file browsercookiejar-0.1.tar.gz.

File metadata

File hashes

Hashes for browsercookiejar-0.1.tar.gz
Algorithm Hash digest
SHA256 c10bb13a7012b7fa196b0a8c67eaaf8f286f4b79114020060065683569e326a0
MD5 72a9efdb97540996edd4000ab92fafda
BLAKE2b-256 57f051b3176283ba71e2e408aa0b05cb24fb1139e2339581e4a13fd40410228e

See more details on using hashes here.

Supported by

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