FTP download in Python

Nowadays most of the data can be accessed over HTTP. You can browse it and eventually fetch it. In the past HTTP served hypertext transmission and files, archives were mainly accessible using FTP protocol. Python still supports it.

Fetching names

FTP allows you to login, switch current directory and fetch all filenames in the current directory.

Writing file

Knowing the filename you can just download it to the local filesystem.

Intercepting data

When dealing with each chunk is required you can provide the callback.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store