Files
py_sandbox/misc/ftpget.py
Andreas 8f7760b2aa reorganising projects
--HG--
branch : sandbox
2009-10-24 15:00:35 +00:00

6 lines
231 B
Python

from ftplib import FTP
ftp = FTP('ftp.asstr.org') # connect to host, default port
ftp.login() # user anonymous, passwd anonymous@
print ftp.getwelome()
ftp.retrbinary('RETR README', open('README', 'wb').write)