retrieve data using FTP in Python

Fredrik Lundh fredrik at pythonware.com
Wed Sep 14 01:59:53 EDT 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:

    http://wiki.python.org/moin/BeginnersGuide

for ftplib, see e.g.

    http://www.python.org/doc/2.4/lib/module-ftplib.html
    http://effbot.org/librarybook/ftplib.htm

</F>






More information about the Python-list mailing list