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

Stuart Turner turnerst at family-zone.co.uk
Mon Jan 9 18:20:49 EST 2006


seberino at spawar.navy.mil 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

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