getting admin pages with python

We have a list maintained by our ISP so we only have web access to the internals via admin pages.
As an exercise I wanted to use python to get access to all the pages in the membership management.
Unfortunately it seems that while urllib can manage http authentification just fine mailman requires cookies etc.
Is there a neat way to use python to provide the correct behaviour?
Robin Becker

"RB" == Robin Becker <robin@reportlab.com> writes:
RB> Unfortunately it seems that while urllib can manage http
RB> authentification just fine mailman requires cookies etc.
RB> Is there a neat way to use python to provide the correct
RB> behaviour?
Robin,
While I haven't had time to look at it at all, I saw recently on comp.lang.python.announce a package called ClientCookie. The Cookie.py that comes with Python is really for managing cookies on the server side, which doesn't help you much (although it makes my life a lot easier :).
ClientCookie looks like it'll probably make possible interacting with web pages that depend on cookies, via scripts on the client side. Check out the news group or the python-announce-list archives.
-Barry

In article <15568.46099.498865.941742@anthem.wooz.org>, Barry A. Warsaw <barry@zope.com> writes
thanks a lot. I saw some discussion about setting the cookies on urllib2 requests etc so I think others are having similar issues. I will certainly check out ClientCookie
http://wwwsearch.sourceforge.net/README-ClientCookie
Robin Becker

"RB" == Robin Becker <robin@reportlab.com> writes:
RB> Unfortunately it seems that while urllib can manage http
RB> authentification just fine mailman requires cookies etc.
RB> Is there a neat way to use python to provide the correct
RB> behaviour?
Robin,
While I haven't had time to look at it at all, I saw recently on comp.lang.python.announce a package called ClientCookie. The Cookie.py that comes with Python is really for managing cookies on the server side, which doesn't help you much (although it makes my life a lot easier :).
ClientCookie looks like it'll probably make possible interacting with web pages that depend on cookies, via scripts on the client side. Check out the news group or the python-announce-list archives.
-Barry

In article <15568.46099.498865.941742@anthem.wooz.org>, Barry A. Warsaw <barry@zope.com> writes
thanks a lot. I saw some discussion about setting the cookies on urllib2 requests etc so I think others are having similar issues. I will certainly check out ClientCookie
http://wwwsearch.sourceforge.net/README-ClientCookie
Robin Becker
participants (3)
-
barry@zope.com
-
Richard Barrett
-
Robin Becker