using urllib with ftp?

Fredrik Lundh fredrik at pythonware.com
Thu May 4 22:55:13 CEST 2006


John Salerno wrote:

> I've tried this already and it seems to work, but I'm curious if it's
> okay to use urllib when trying to access a url that begins with ftp://
> instead of http://. Does this matter? It's only a text file, so it's not
>   really an FTP server I'm accessing, I don't think. I wasn't sure if
> using ftplib would be overkill in this case, or if you even could use it
> at all if you just want to get the page itself (the txt file).

from the urllib documentation:

    Currently, only the following protocols are supported: HTTP,
    (versions 0.9 and 1.0), Gopher (but not Gopher-+), FTP, and
    local files.

</F>






More information about the Python-list mailing list