Re: [Tutor] urllib2 and cookies

2007-10-25 Thread Kent Johnson
Michael Meier wrote: > Hi > > ASPN has a very verbose example of cookielib usage at > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/302930 There is a writeup of this recipe here: http://www.voidspace.org.uk/python/articles/cookielib.shtml This is way more complicated than you need, tho

Re: [Tutor] urllib2 and cookies

2007-10-25 Thread Michael Meier
Hi ASPN has a very verbose example of cookielib usage at http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/302930 Many things are very OS, especially Windows, specific. You can surely phase out the relevant parts :) Probably the solution with cookielib is the easiest way to go. Cookielib is

[Tutor] urllib2 and cookies

2007-10-25 Thread SwartMumba snake
I want to read the html source off a site but the site requires cookies. What code must I use to handle my cookies, instead of me typing them out? NB I want to use urllib2 to open the site, not urllib. I am currently using python 2.5 This is what I have done so far, but I do not want to type out