[Tutor] getting a webpage via python

Paul Tremblay phthenry at iglou.com
Thu Mar 10 00:04:19 CET 2005


On Wed, Mar 09, 2005 at 08:29:46AM -0500, Kent Johnson wrote:
> 
> Kent Johnson wrote:
> >Paul Tremblay wrote:
> >
> >>So I just make a file called /etc/router_passwords  and include
> >>something like
> >>WRT54G username password
> >>
> >>Then parse the file, and supply the info to the password handler? This
> >>is easy to do, and I guess it is secure. 
> 
> The book "Foundations of Python Network Programming" has a sample program 
> that uses a custom urllib2.HTTPPasswordMgr to ask the user for the username 
> and password, maybe you would like to use that?
> 
> The examples can be downloaded from the book Web site at
> http://www.apress.com/book/bookDisplay.html?bID=363
> 
> Look for the one called dump_info_auth.py
> 

Thanks. There are lots of good examples in the free download examples.

Paul

-- 

************************
*Paul Tremblay         *
*phthenry at iglou.com    *
************************


More information about the Tutor mailing list