from pytube import YouTube
import bs4
import requests
playlist=[]
url=input("Enter the Youtube Playlist URL : ") #Takes the Playlist Link
data= requests.get(url)
soup=bs4.BeautifulSoup(data.text,'html.parser')
vquality=input("Enter the video quality (1080,720,480,360,240,144):")
vquality=vquality+"p"
for link in playlist:
yt = YouTube(link)
videos= yt.streams.filter(mime_type="video/mp4",res=vquality)
video=videos[0]
video.download("Downloads")
print(yt.title+" - has been downloaded !!!")