This is a simple tutorial to easily download lots of mp3 audios from YouTube videos. We are going to create a python script that uses youtube-dl to download and convert to audios the videos we are interested in, from an initial list of videos.

  1. Make sure you have youtube-dl installed;
  2. Make a .txt file named list.txt where each line corresponds to a link from a YouTube video;
  3. Save and run the python script below.
import subprocess

with open('list.txt') as f:
    list_ =

for l,line in enumerate(list_.split('\n')):
    if len(line) > 0:
        comm = "youtube-dl --extract-audio --audio-format mp3 -l " + line
        res =[comm], shell=True)

Example of .txt file: