Sending cookies with python. When download with python

Matimus mccredie at
Tue Jun 5 20:29:03 CEST 2007

On Jun 5, 9:14 am, moishyyeh... at wrote:
> I need to download files off a password protected website. So if I try
> to download files off the site with python I will be blocked. Is there
> anyway to send cookies with python. So I will be authenticated.

Yes. I haven't done it but I know you should be looking at urllib2 and
cookielib. I'm sure you can find some examples online. Dive Into
Python (google it) has some examples that may help you get started
with more general purpose  use of urllib2.


More information about the Python-list mailing list