Vuoi imparare come scaricare file da un server FTP usando Python? In questo tutorial, ti mostreremo come utilizzare Python per scaricare file da un server FTP su un computer che esegue Linux.

• Ubuntu 20
• Ubuntu 19
• Ubuntu 18
• Python 3.8.5
• Python 2.7.18

Equipment list

Here you can find the list of equipment used to create this tutorial.

This link will also show the software list used to create this tutorial.

Esercitazione correlata - Python

In questa pagina, offriamo un rapido accesso a un elenco di tutorial relativi a Python.

Esercitazione Python 3 - Scaricare file dal server FTP

Elencare i file remoti dal server FTP utilizzando Powershell.

Copy to Clipboard

Ecco l'output del comando.

Copy to Clipboard

Scarica un file dal server FTP usando Python.

Copy to Clipboard

Nel nostro esempio, abbiamo scaricato un'applicazione chiamata FIREFOXINSTALLER.

Nel nostro esempio, abbiamo salvato il download all'interno della directory TMP.

Nel nostro esempio, abbiamo usato la modalità binaria.

Accedere alla directory e verificare se il file è stato scaricato correttamente.

Copy to Clipboard

Ecco l'output del comando.

Copy to Clipboard

Facoltativamente, scaricare un file dal server FTP.

Copy to Clipboard

Congratulazioni! È possibile scaricare file dal server FTP utilizzando Python 3.

Tutorial Python 2 - Scarica file dal server FTP

Scarica un file dal server FTP usando Python 2.

Copy to Clipboard

Congratulazioni! È possibile scaricare file dal server FTP utilizzando Python 2.