Need to know how to get an ftp program to work on python

Reply

Join Date: Jul 2008
Posts: 4
Reputation: safir8100 is an unknown quantity at this point 
Solved Threads: 0
safir8100 safir8100 is offline Offline
Newbie Poster

Need to know how to get an ftp program to work on python

 
0
  #1
Sep 23rd, 2008
Hi,

I am trying to get my python program to download ftp files directly in the program. Connection stuff is done. I managed to download through the command line, but now I want get the same thing done using a python program.

Can anyone help me (all kinds of solutions and suggestions are appreciated =) )?
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 1,046
Reputation: jlm699 is a jewel in the rough jlm699 is a jewel in the rough jlm699 is a jewel in the rough jlm699 is a jewel in the rough 
Solved Threads: 264
Sponsor
jlm699's Avatar
jlm699 jlm699 is offline Offline
Knows where his Towel is

Re: Need to know how to get an ftp program to work on python

 
0
  #2
Sep 23rd, 2008
You can look into paramiko for FTP use. I've used it before and it's VERY straight forward. The documentation provides plenty of examples of usage for connecting to an FTP server and retrieving files.
1. Use Code Tags.
2. Homework? Show Effort.
3. Keep discussions on the forum: no PMs
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 4
Reputation: safir8100 is an unknown quantity at this point 
Solved Threads: 0
safir8100 safir8100 is offline Offline
Newbie Poster

Re: Need to know how to get an ftp program to work on python

 
0
  #3
Sep 24th, 2008
thanks for the suggestion, i'll try it.

It there anyone who could tell me how to do it directly through python?
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 4
Reputation: safir8100 is an unknown quantity at this point 
Solved Threads: 0
safir8100 safir8100 is offline Offline
Newbie Poster

Re: Need to know how to get an ftp program to work on python

 
0
  #4
Sep 25th, 2008
i tried to use paramiko, but either i used it incorrectly or it is not a good option for my purposes.

does paramiko allow me to write a program on python that would download ftp stuff from certain sites?

my main issue is to be able to download multiple files at once using ftp. i have managed to do it for one file, but because there are several, it is necessary to write a program to download all files in the directory. (using range is not good, since i don't know the specific count of files there).
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 1,046
Reputation: jlm699 is a jewel in the rough jlm699 is a jewel in the rough jlm699 is a jewel in the rough jlm699 is a jewel in the rough 
Solved Threads: 264
Sponsor
jlm699's Avatar
jlm699 jlm699 is offline Offline
Knows where his Towel is

Re: Need to know how to get an ftp program to work on python

 
0
  #5
Sep 26th, 2008
Yes paramiko can do that. You mentioned that you can do it from the command line. So why not just use system commands via python?

I.E. os.system, or popen, subprocess, etc. ?
1. Use Code Tags.
2. Homework? Show Effort.
3. Keep discussions on the forum: no PMs
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Python Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC