retrieve data using FTP in Python

Jaime Wyant programmer.py at gmail.com
Wed Sep 14 11:42:49 EDT 2005


Try this from the interpreter:

import ftplib
help(ftplib)

The module is pretty easy to use.  If you'll be doing anything with
`http', then visit urllib2:

import urllib2
help(urllib2)

I think urllib2 will take `ftp' urls:
ftp://user:pass@somewhere.com/dir/file_to_get

hth,
jw
On 9/13/05, swarna pulavarty <swarnapsv at yahoo.co.in> wrote:
>  
> Hi all, 
>   
> 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. 
> 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 ?  
>   
> Your help is appreciated ! 
>   
> Swarna.
> 
>  ________________________________
>  Yahoo! India Matrimony: Find your partner now. 
> 
> 
> --
> http://mail.python.org/mailman/listinfo/python-list
> 
>



More information about the Python-list mailing list