from ftplib import FTPf = FTP('ftp.kernel.org')f.login()f.cwd('/pub/linux/kernel/v1.0')fd = open('patch8.gz', 'wb')f.retrbinary('RETR patch8.gz', fd.write)fd.close()f.quit()
Name (required)
email (will not be published) (required)
Website