Skip to content

ansarimohammed422/Projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation


Asynchronous File Downloader

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.

Requirements

  • Python 3.7+
  • asyncio module (standard in Python)
  • aiohttp module (pip install aiohttp)
  • aiofiles module (pip install aiofiles)
  • plyer module (pip install plyer)

Installation

  1. Clone or download the repository to your local machine.

    git clone https://github.com/your-username/your-repository.git
  2. Navigate to the directory containing the script.

    cd your-repository
  3. Install dependencies using pip.

    pip install -r requirements

Usage

Downloading Files

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.

Examples

Example 1: Downloading Files

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.

Notifications

Upon successful download of each file, a desktop notification will be displayed (using Plyer) with details of the downloaded file.

License

This project is licensed under the MIT License - see the LICENSE file for details.


About

Small Projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages