How login & download file from remote web site? Passwords a problem?

Stuart Turner turnerst at
Tue Jan 10 00:20:49 CET 2006

seberino at wrote:

> How make a Python script
> 1. login
> 2. type password &
> 3. download file
> all from a **remote web site**?
> I'm not comfortable with *MY* software handling the password part.
> It just seems like trouble if users must tell *my* software their
> password.
> Is there a wise way to solve this or avoid this can of worms?
> Chris


As a suggestion, why not look at the urllib and getpass modules.

If you get stuck, mail me and I'll send you over some sample code,

- Stuart

More information about the Python-list mailing list