4 ms·
Python 101: Downloading a File with ftplib
- pjscott 14y agoYou can also use urllib, which makes it a one-liner: >>> import urllib >>> doc = urllib.urlopen('ftp://ftp.example.com/foo.txt').read() PyCurl is another popular choice, though less simple to use.