Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #3559

Re: Looking for a urllib(2) cookie handler

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <chris@rebertia.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'url:sourceforge': 0.02; 'mechanize': 0.07; 'sqlite': 0.07; 'kinda': 0.09; 'received:74.125.82.174': 0.12; 'received:mail- wy0-f174.google.com': 0.12; 'am,': 0.14; 'wrote:': 0.14; 'cookies': 0.16; 'properly.': 0.16; 'skip:\\ 40': 0.16; 'subject:urllib': 0.16; 'url:mechanize': 0.16; 'url:wwwsearch': 0.16; 'skip:m 30': 0.16; 'url:blog': 0.18; 'have:': 0.19; 'appear': 0.19; 'tue,': 0.20; 'url:doc': 0.20; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'cheers,': 0.20; 'header:In- Reply-To:1': 0.22; 'cc:addr:python-list': 0.22; 'carter': 0.23; 'values.': 0.23; 'version': 0.25; 'chris': 0.27; 'message- id:@mail.gmail.com': 0.28; "doesn't": 0.28; 'looks': 0.28; 'cc:addr:python.org': 0.31; "can't": 0.31; 'import': 0.32; 'apr': 0.38; 'received:google.com': 0.38; 'but': 0.38; 'where': 0.39; 'header:Received:5': 0.40; 'database,': 0.60; '2011': 0.62; 'url:net': 0.62; 'response.': 0.67; 'want,': 0.72; '"just': 0.84; 'persists': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=93fLnKQinPQhE9/ncmZoSAfg5B2NRiVJYKkd0sKbcVg=; b=WsrLYlNsaK3LN27FWQJoq13oxJk0Ms714Xy2aaJrqBjNrrxTNgL9e3cHBGO41h307u D9GWYpMaPZdrwWXkPKApvH+AcylZcqf7n4XNiv3CmC5s159yMT1T5SR6irNm4RlC0RZD iQ+6J6t2XH5Kk9Y2ophQ5FXn/QCpEY1TnLCX0=
DomainKey-Signature a=rsa-sha1; c=nofws; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=HOSQdckarI5bZwP49iMIlS5gkADooPFUciu/25+OOMb6PwxoSjILCd1NkIBqrEGRpP QWyFAGdr/rAWM99a8+sjkORKrx+tmwx/qS+Pah16Scy27uEqmdB3C2pDEvAGIrkLu1sd vh0qnM4WrpAi0uThfp5S1ZFnT/M+0sN6VvUF8=
MIME-Version 1.0
Sender chris@rebertia.com
In-Reply-To <8b8bc21a-f7f4-4c7c-bd8a-e23ecb4622a6@a11g2000pro.googlegroups.com>
References <6acd452a-9bf5-4908-ba05-18a70174092b@j9g2000prj.googlegroups.com> <8b8bc21a-f7f4-4c7c-bd8a-e23ecb4622a6@a11g2000pro.googlegroups.com>
Date Tue, 19 Apr 2011 05:57:02 -0700
X-Google-Sender-Auth ByeZQHz0vmXXXkEE0cE-k8f62rQ
Subject Re: Looking for a urllib(2) cookie handler
From Chris Rebert <clp2@rebertia.com>
To Mark Carter <alt.mcarter@gmail.com>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.558.1303217829.9059.python-list@python.org> (permalink)
Lines 29
NNTP-Posting-Host 82.94.164.166
X-Trace 1303217830 news.xs4all.nl 81473 [::ffff:82.94.164.166]:41297
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:3559

Show key headers only | View raw


On Tue, Apr 19, 2011 at 5:48 AM, Mark Carter <alt.mcarter@gmail.com> wrote:
> On Apr 19, 12:44 pm, Mark Carter <alt.mcar...@gmail.com> wrote:
>
>> url and say "just use the cookie that I have in Firefox"?
>
> "mechanize" looks kinda like what I want, but i still can't get it to
> work properly. So far I have:
>
> import cookielib
> import mechanize
>
> cookiefile = "C:\\Users\\$ME\\AppData\\Roaming\\Mozilla\\Firefox\
> \Profiles\\zl648qvt.default\\cookies.sqlite"
> cookies = mechanize.MozillaCookieJar(filename = cookiefile,
> delayload=True)
<snip>
> where $ME and $URL are replaced with suitable values. It doesn't
> appear to acutally be "using" the cookies.

http://wwwsearch.sourceforge.net/mechanize/doc.html :
"Firefox since version 3 persists cookies in an sqlite database, which
is not supported by MozillaCookieJar."

Please see my prior response.

Cheers,
Chris
--
http://blog.rebertia.com

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Looking for a urllib(2) cookie handler Mark Carter <alt.mcarter@gmail.com> - 2011-04-19 04:44 -0700
  Re: Looking for a urllib(2) cookie handler Chris Rebert <clp2@rebertia.com> - 2011-04-19 05:01 -0700
  Re: Looking for a urllib(2) cookie handler Mark Carter <alt.mcarter@gmail.com> - 2011-04-19 05:48 -0700
    Re: Looking for a urllib(2) cookie handler Chris Rebert <clp2@rebertia.com> - 2011-04-19 05:57 -0700

csiph-web