En Mon, 07 May 2007 02:27:59 -0300, Shakil Ahmed <[EMAIL PROTECTED]> escribió:
> Actually i need to know that how can i download a ftp file from ncbi by > using python module ftputil. > > import ftputil > > host = ftputil.FTPHost('ftp.ncbi.nih.gov/repository/OMIM/morbidmap', > 'anonymous', 'password') The "host" is the first part, "ftp.ncbi.nih.gov". The remaining parts are a directory and a filename. You should write: host = ftputil.FTPHost('ftp.ncbi.nih.gov','anonymous', 'password') host.chdir('repository/OMIM') host.download('morbidmap','path/to/local/file/morbidmap','b') See the ftputil documentation for more info. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list