This program downloads the audio from a Youtube link and then converts it to the desired audio format.
-
After installing python, navigate to the directory with
main.py
and type:pip install -r requirements.txt
-
Install ffmpeg from https://ffmpeg.org/download.html and add ffmpeg to PATH, for example:
export PATH=$PATH:/<...path to ffmpeg...>/ffmpeg/bin
-
Copy and paste your list of Youtube URLs from your bookmarks into
url_list.txt
-
Typical usage; if we want
New_Folder
as the folder where we download to, type:python main.py New_Folder
- This file uses ffmpeg installed from: https://ffmpeg.org/download.html
- You must add ffmpeg to your PATH, as shown above.
- On Windows, the executable is named
ffmpeg.exe
, if on MAC or Linux you may have to change the variableffmpeg_name
inconvert.py
.
main.py
-> read_url_list
-> print_download_status
-> download_audio
-> get_audio_stream_hq
-> convert_audio_type
Created: 2020-08-22