Exploring a ftp with python to find pdf

Helmut Jarausch jarausch at igpm.rwth-aachen.de
Thu Jul 31 12:11:54 CEST 2003


conatic wrote:
> I want to make a script that connect to a ftp and get a list of all pdf 
> stored in the ftp with their path to use the list later.
> 
> I have tried some script with recursion but can't do something good.
> Could you help ?

I don't know if there's something similar to wget or ncftp in Python.
Have you looked at the ftplib module and at the script
dist/src/Tools/scripts/ftpmirror.py  in the Python Source distribution?


-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany





More information about the Python-list mailing list