1import YouTube from pytube
2
3yt = YouTube(url)
4t = yt.streams.filter(only_audio=True)
5t[0].download(/path)
1from __future__ import unicode_literals
2import youtube_dl
3
4ydl_opts = {}
5with youtube_dl.YoutubeDL(ydl_opts) as ydl:
6 ydl.download(['VideoURL'])