![]() ![]() Print('Number of videos in playlist: %s' % len(_urls))Īnd Playlist.populate_video_urls() function was deprecated. Playlist._video_regex = re.compile(r"\"url\":\"(/watch\?v=*)")ĪudioStream = _by_itag(YOUTUBE_STREAM_AUDIO)ĪudioStream.download(output_path=DOWNLOAD_DIR) Open a playlist, album, or artist you like to choose the want-to-downloaded songs. YOUTUBE_STREAM_AUDIO = '140' # modify the value to download a different streamĭOWNLOAD_DIR = 'D:\\Users\\Jean-Pierre\\Downloads' Click the Sign in button and log in with your YouTube Music account. The empty s list fix was taken from this Stackoverflow post: PyTube3 Playlist returns empty list import re Add music to the playlist by dragging songs from your library onto your playlist name in the left menu, or by right-clicking on songs and selecting Add to Playlist. Also, if you want to download the full video instead of the sound track only, you have to modify the value of the Youtube tag constant. Playlists can have as many songs as you’d like. Note that the playlist must be public for the download to succeed. Here's a code which downloads the sound stream of the videos referenced in a Youtube playlist.
0 Comments
Leave a Reply. |