Re: retrieve data using FTP in Python

2005-09-14 Thread Fredrik Lundh
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

retrieve data using FTP in Python

2005-09-14 Thread swarna pulavarty
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

Re: retrieve data using FTP in Python

2005-09-14 Thread Jaime Wyant
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:[EMAIL PROTECTED]/dir/file_to_get hth, jw On 9/13/05, swarna

retrieve data using FTP in Python

2005-09-13 Thread swarna pulavarty
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

Re: retrieve data using FTP in Python

2005-09-13 Thread Steve Holden
swarna pulavarty 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