retrieve data using FTP in Python

Fredrik Lundh fredrik at
Wed Sep 14 07:59:53 CEST 2005

"swarna pulavarty" wrote:

> I am new to this Python group and to Python . I need to retrieve data
> from an arbitrary URL and save it to a file.

if you have an URL, you can use the urllib module:

    urllib.urlretrieve(url, filename)

> Can anyone tell me how to retrieve "any" data using FTP modules in
> Python ? And also, Can you suggest me some books and online references
> to get familiar with Python and especially FTP modules in Python ?

for python, start here:

for ftplib, see e.g.


More information about the Python-list mailing list