I have been using pytube to download youtube videos in python. So far I have been able to download in mp4 format.
yt = pytube.YouTube(\"https://www.youtube.com/
You will need to install pytubemp3 (using pip install pytubemp3) latest version 0.3 + then
pip install pytubemp3
from pytubemp3 import YouTube YouTube(video_url).streams.filter(only_audio=True).first().download()