Download YouTube Playlist using Python

mahabub.devs3
Mahabubur Rahman
Published on Oct, 17 2024 1 min read 0 comments
image

Installing Packages :

You need to install bellow package - 

pip install pytube

 

Now write bellow code and run it

from pytube import Playlist
playlist_url = input("Enter Playlist URL :")
playlist = Playlist(playlist_url)
for video in playlist.videos:
	video.streams.get_highest_resolution().download

 

Now enter your play list url here

Enter Playlist URL : https://www.youtube.com/watch?v=wq1of6ScTK4&list=RDGMEM-k_QLHdJQ0wCKGxOayCJHQVMwq1of6ScTK4&start_radio=1

 

 

0 Comments