Files Downloader is a Python application for downloading multiple image files from a list of URLs. It offers two modes of operation: serial and threaded.
- Download images either serially or using multiple threads.
- Accept user-defined output folder for downloaded images.
- Measure and display download time.
- Discarding failed downloads.
- Clone the repository:
git clone https://github.com/Dongli99/PY-FileDownloader.git
- Navigate to the project directory:
cd PY-FileDownloader
- Install dependencies:
pip install requests
Run the application using the following command:
python main.py <mode> [-f <folder>]
<mode>
: Specify the download mode. Uses
for serial mode andt
for threaded mode.-f, --folder <folder>
: (Optional) Specify the folder where images will be downloaded. If not provided, images will be saved to the defaultimages
folder.
- Download images serially to the default folder:
python main.py s
- Download images using threads to a custom folder named
downloads
:python main.py t -f downloads