Posts

Showing posts from February, 2023

Lalita_YouTube_Downloader v1.1

  from tkinter import * from tkinter . ttk import Progressbar from tkinter import ttk import pytube from tkinter import messagebox root = Tk () root . title ( "Lalita Youtube Downloader" ) root . geometry ( "600x400" ) def retrieve_input ():     try :         link = textBox . get ( "1.0" , "end-1c" )         print ( link )         ytube = pytube . YouTube ( link )         choice = v . get ()         if choice == 0 :             res = "360p"             ytube . streams . get_by_resolution ( res ). download ()         if choice == 1 :             res = "480p"             ytube . streams . get_by_resolution ( res ). download ()         if choice == 2 :             res = "720p"             ytube . streams . get_by_resolution ( res ). download ()         if choice == 3 :             res = "1080p"             ytube . streams . get_by_resolution ( res ). download ()               messagebox