# Try using the wget library for python import wget link = 'ftp://example.com/foo.txt' wget.download(link)