It is an all purpose downloader written completely in python
- Incorporates multi-threading and splits a large file into a number of pieces depending on the user
- supports a feature of pausing and resuming the downloads any number of times
- consistently writes the files to hard drive from from RAM hence allowing machines with low RAM cpacity to download lage sized files
- written completely in python hence can be used in linux, mac and windows
- has very little dependencies on python libraries
- Downloading speed can be improved dramatically (upto 5 folds) if used over a LAN
- Can be used to download almost any kind of file
- supports pausing the downloads which can come handy if internet speed is slow
We are using Python 3 . Reason we will be using the Python3, it’s the Future. The support for Python 2.7.x is provided till 2020, after that Python community won’t provide any updates for 2.7.x version. Where to install Python from? It depends on which operating system you are having.
- If you have Linux/Mac Operating System, then you don’t need to install. They are shipped with python.
- If you are a Windows user, then you have to install it all by yourself. There are 3 major ways:
-
- Downloading the Installation file from the official website of Python itself.
-
- Installing python from conda (installs other software with python) and mini-conda(will only install python). We will install python using miniconda
- Install pip for various libraries needed.
Install the dependencies and devDependencies and open terminal.
$ sudo pip install pafy
$ sudo pip install youtube-dl
Firstly go the folder which contains the all the code.
Change the the no of fragments you want by altering the variable frag in line 21 of downloader.py. Recomended no of fragments are between 4 to 32. Default is set to 5.Then for almost any link this will be the standard way of downloading.
$ python3 downloader.py url_you_want_to_download
For videos just copy the youtube url and paste it and if you want the audio of that paticular video just add m after the code.For starting a single file download without fragmenting the file press ctrl + c and for stopping/ pausing the downloads press ctrl + c again
Downloading a video from youtube.com
default number of fragments are 5 which will be created in the folder from which the srcipt is run.
pressing ctrl + c will initiate a single file download
Pressing ctrl + c will stop the download. Runnig the the command again will start the download. In the image below, the download is starting from 22% because the script already considers the downloded portion completed and shows percentage completion the rest of the file
Downloading a mp3 file from youtube
$ python3 downloader.py url_you_want_to_download m
The fragments will be deleted after the download is finished.
MIT License
Copyright (c) 2017 Crux
Members involved in the project :