Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Python Programming Language

Sending cookies with python. When download with python


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.
On Jun 5, 9:14 am, moishyyeh@gmail.com 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.

Matt

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc