I have the following code which easily connects to the FTP server and opens a zip file. I want to download that file into the local system. How to do that?
#
If you are not limited to using ftplib you can also give wget module a try. Here, is the snippet
ftplib
wget
import wget file_loc = 'http://www.website.com/foo.zip' wget.download(file_loc)