1from pytube import Playlist
2p = Playlist('https://www.youtube.com/playlist?list=PLGo0NLnuNoa-KKJPn8ZBRjksb8jaw4lz-')
3
4print(f'Downloading: {p.title}')
5
6for video in p.videos:
7 print(video.title)
8 st = video.streams.get_highest_resolution()
9 st.download()
10 #video.streams.first().download()
1
2playlist=[]
3url=input("Enter the Youtube Playlist URL : ") #Takes the Playlist Link
4data= requests.get(url)
5soup=bs4.BeautifulSoup(data.text,'html.parser')
6
7