YTDL is a wrapper around the youtube_dl package to download primarily audio and video from Youtube easily ❤️
This project has been made for educational purposes using python language and does not support or encourage pirating activities.
Started as a fun project, YTDL is at it's current because of contributions from amazing people all over the world.
Single YouTube mp3 download:
ytd.py <YOUTUBE VIDEO LINK>
Download an entire YouTube playlist in mp3:
ytd.py --playlist <YOUTUBE PLAYLIST LINK>
Single Youtube Video download:
ytd.py --video <YOUTUBE VIDEO LINK>
Download an entire Youtube playlist videos:
ytd.py --video --playlist <YOUTUBE PLAYLIST LINK>
-
-o or --output
:- Define the output location for the current session. -
--video or -v
:- Downloads the video. -
--playlist
:- Playlist URL. -
--playlist-start or -ps
: Define the starting point of the playlist. -
--playlist-end or -pe
:- Define the end point of the playlist. -
--playlist-items or -pi
:- This command downloads the songs at the mentioned serial numbers. -
--default
:- Define the default download location.
To download the songs, follow these commands :-
Supported flags are explained below:
Command | Function |
---|---|
ytd.py -o . --playlist PLAYLIST_LINK |
Downloads the entire playlist in the cwd. |
ytd.py -o . --playlist PLAYLIST_LINK --playlist-start song_Number |
Downloads the entire playlist in the cwd from the specified song serial number in the playlist. |
ytd.py -o . --playlist PLAYLIST_LINK --playlist-end Song_Number |
Downloads the playlist in the cwd and stops downloading when it reaches the mentioned song number. |
ytd.py -o . --playlist PLAYLIST_LINK --playlist-items song_Number-1, Song_Number-2, ..., Song_Number-x |
Downloads the songs at the positions of the mentioned serial numbers. |
ytd.py -o . --playlist PLAYLIST_LINK --default |
Downloads the playlist at the default location, the Downloads folder initially. |
ytd.py -o . --playlist PLAYLIST_LINK --default /Folder_Name |
Sets a new download location and downloads the playlist there. |
Command | Function |
---|---|
ytd.py -o . --playlist PLAYLIST_LINK --playlist-end Song_Number --playlist-start song_Number --default/Folder_Location |
Downloads the playlist from the start song number to the end song number at the newly assigned download path. |
1. Clone this repository
$ git clone https://github.com/ionicc/Youtube-mp3-downloader-light
$ cd Youtube-mp3-downloader-light
2. Setup
$ make install
or,
To install for development:
$ make install-dev
If you use make, follow the steps above.
Else, open an admin shell in the project folder, and execute:
> .\install.bat
After the setup, you'll need to download ffmpeg for your system. Then:
- Unzip the archive to a specified directory. e.g.:
C:\libs\ffmpeg
. - Add ffmpeg to your
PATH
> setx path "%PATH%;C:\libs\ffmpeg\bin"
$ ./ytd.py # launch in interactive mode
With Conda:
- Create new conda environment:
conda create -n my_new_env python=3.7
- Install pyqt:
conda install -c defaults pyqt=5 qt
pip3 install pyqt5
- Follow the steps above for Windows or Linux
- Go to the folder then run:
python ui.py