Question: how to do ftp in python?
Answer: import ftplib ftp = ftplib. FTP("ftp.nluug.nl") ftp. login("anonymous", "ftplib-example-1") data = [] ftp. ... 
import ftplib ftp = ftplib. FTP("ftp.nluug.nl") ftp. ... 
import ftplib import sys def getFile(ftp, filename): try: ftp. retrbinary("RETR " + filename ,open(filename, 'wb').