[Tutor] ftp

Kent Johnson kent37 at tds.net
Mon Jun 4 00:41:26 CEST 2007


Jason Coggins wrote:
> What would be the best method to (1) check if there is a particular file 
> available for download on the internet and (2) if the file is available, 
> download the file to a particular directory.

Use ftplib. Here are some examples:
http://effbot.org/librarybook/ftplib.htm

Here is a wrapper that provides a higher-level interface:
http://ftputil.sschwarzer.net/trac

Kent


More information about the Tutor mailing list