websucker.py versus password-protected web tree
Fredrik Henbjork
frehe491 at student.liu.se
Wed Oct 6 10:07:49 EDT 1999
John van der Koijk wrote:
>
> Dear readers,
>
> I'm out of luck trying to mirror a certain web-tree which is protected
> by a password-username combination. Don't know how the protocol works
> and when I use a browser I get something like this:
>
> Name Last modified Size Description
> __________________________________________________________________________
>
> [DIR] Parent Directory 01-Oct-1999 12:26 -
> [TXT] Test.htm 03-Oct-1999 14:29 1k
> [DIR] demo/ 05-Oct-1999 19:21 -
> [TXT] download.htm 05-Oct-1999 20:14 3k
> [ ] es_demo.exe 03-Oct-1999 16:18 3.6M
> [DIR] full/ 05-Oct-1999 19:44 -
> [DIR] limited/ 05-Oct-1999 20:04 -
> _________________________________________________________________
>
> - I know the username and password ;-)
>
> Websucker seems unable to cope with this and I can't find relevant
> references in the urllib docs. Any pointers? Should I alter the URL?
>
> Greetings,
> --
> John van der Koijk.
> --
> TNO Institute of Industrial Technology
>
> --
> http://www.python.org/mailman/listinfo/python-list
Say you have the following:
site url: www.deadparrot.org
username: sirrobin
password: brave
file: spam.txt
To access the file use:
sirrobin:brave at www.deadparrot.org/spam.txt
as the url. For exampel in Netscape you would write:
http://sirrobin:brave@www.deadparrot.org/spam.txt
There may also be other ways to do it websucker.py
but since I haven't used the module I can't tell
for sure.
--
Fredrik Henbjork
Email: frehe491 at student.liu.se
WWW: http://o112.ryd.student.liu.se
More information about the Python-list
mailing list