This Python script uses asyncio and aiohttp to asynchronously download multiple files from specified URLs. It supports custom filenames and displays notifications upon successful downloads using Plyer.
- Python 3.7+
asyncio
module (standard in Python)aiohttp
module (pip install aiohttp
)aiofiles
module (pip install aiofiles
)plyer
module (pip install plyer
)
-
Clone or download the repository to your local machine.
git clone https://github.com/your-username/your-repository.git
-
Navigate to the directory containing the script.
cd your-repository
-
Install dependencies using pip.
pip install -r requirements
Download one or more files from specified URLs.
python async_downloader.py url1 url2 url3 -f filename1 filename2 filename3
url1
,url2
,url3
: URLs of files to download.-f filename1 filename2 filename3
: Optional custom filenames for downloaded files. If not provided, filenames will be inferred from URLs.
python async_downloader.py https://example.com/file1.zip https://example.com/image.jpg -f archive.zip picture.jpg
Downloads file1.zip
from https://example.com/file1.zip
and image.jpg
from https://example.com/image.jpg
, saving them as archive.zip
and picture.jpg
, respectively.
Upon successful download of each file, a desktop notification will be displayed (using Plyer) with details of the downloaded file.
This project is licensed under the MIT License - see the LICENSE file for details.