Skip to content

rezabojnordi/shabi_download

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shabi_download

Here is a Python script for a simple terminal-based download manager named Shabi Download Manager that can handle both single and multiple file downloads. It utilizes multithreading to increase download speed and provides a graphical progress bar in the terminal using the tqdm library.

Features:

Single or Multiple Downloads: Choose to download either a single file or multiple files at once.

Multithreading: Increase download speeds by downloading multiple files concurrently.

Progress Visualization: Uses tqdm to show a progress bar for each file, as well as overall progress.

Alt text

Alt text

Requirements:

  • Python 3.x

  • requests library: For handling HTTP requests.

  • tqdm library: For showing download progress in the terminal.

You can install the required libraries using:

pip install requests tqdm

Usage:

This script can be run from the terminal with different modes:

To download a single file:

python3 shabi_download_manager.py 1 --urls https://example.com/file.zip --threads 20 --directory downloads
or
shabi_download 1 --urls 'https://dl3.linkro.info/Movies6/2024/The.Substance.2024/The.Substance.2024.1080p.WEB-DL.DD5.1.H.264.FLUX.ZarFilm.mkv?md5=u3O70cYVRfbpklais-gJYQ&u=820535&expires=1731421607' --threads 20 --directory downloads

To download multiple files concurrently:

  • Note: You can add your link on the link.txt after that this commandline read from the file
python3 shabi_download_manager.py 2  --threads 20 --directory downloads
or
shabi_download 2 --threads 20 --directory downloads

binary file

cp shabi_download /usr/bin/

shabi_download  -h
shabi_download -h
usage: shabi_download [-h] [--urls URLS [URLS ...]] [--threads THREADS] [--directory DIRECTORY] [--resume] mode

Shabi Download manager.

positional arguments:
  mode                  1 for single link, 2 for multiple links

options:
  -h, --help            show this help message and exit
  --urls URLS [URLS ...]
                        URL(s) to download
  --threads THREADS     Number of concurrent threads
  --directory DIRECTORY
                        Directory to save downloaded files
  --resume              Resume the download if interrupted

Arguments:

  • mode: Specify 1 for single link or 2 for multiple links.

  • --urls: Provide the URL(s) to download.

  • --threads: (Optional) Set the number of concurrent threads for multiple downloads (default is 4).

  • --directory: (Optional) Directory to save downloaded files (default downloads).

  • --resume Resume the download if interrupted

Feel free to use and modify it for your personal needs. If you have any questions or need further customization, let me know!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages