Using Python to Leech Files from an FTP Server

My friend Jeff from { ParsedContent } and I were discussing the techniques one could use to surreptitiously download files from and FTP server using Python. Jeff has made a posting on Dream.In.Code looking for some quick guidance, and I jumped at the chance to flex my programming muscles.

After a few rounds going back and forth, we moved our discussion to email. After some mutual deliberation, and scouring of Python's ftplib documentation, we rediscovered the NLST command, and Python's implementation of it. This allowed us to whip up a concise piece of code to do everything Jeff needed:

comments powered by Disqus