Advertisement
c0d3dsk1lls

YT downloader CodedSkills.net

Aug 6th, 2022 (edited)
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 10.24 KB | None | 0 0
  1. ##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++##
  2. ##=======================================================================================================================================================================================##
  3. ##----------------------CODEDSKILLS.NET--------------------------------------------------------------------------------------------------------------------------------------------------##
  4. #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  5. from tkinter import *            #
  6. from threading import Thread     #
  7. from tkinter import messagebox   #
  8. from pytube import YouTube       #
  9. #--------------------------------#
  10. #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  11. #----------------------------------#------------------------------------------------+-----------------------------+
  12. def threading():                   #
  13.     # Call work function           #
  14.     t1=Thread(target=download)     #
  15.     t1.start()                     #---------------+-------------------+----------------------------------+------------------------------------------------+
  16. #----------------------------------#
  17. #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  18. #-------------------------------------#----------------------+--------------------------------+
  19. def download(): #---------------------#
  20.     url = YouTube(str(url_box.get())) #---------------#
  21.     video = url.streams.first() #---------------------#
  22.     video.download()  #-------------------------------#
  23.     messagebox.showinfo('', 'Download completed!')    #
  24. #-----------------------------------------------------#
  25. #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  26. #---------------------------------#--------------------------------------------+--------------------------------------------------+
  27. root =Tk() #----------------------#
  28. root.title('YouTube Downloader')  #
  29. root.geometry('738x237+500+200')  #-------+----------------------------------------------+-------------------------------------------------------+-------------------------------+01010000001+----------------------+
  30. #root.iconbitmap('youtube.ico')   #
  31. root.configure(bg='black')    #---#
  32. root.resizable(False,False)   #
  33. #-----------------------------#----------+1010000001+----------------------------------------------------+--------------------------------------------+---------------------------------------------+
  34. #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  35. #--LABEL WIDGETS----------------------#-------------+---------------------------+-------------------+
  36. introlable = Label( #-----------------#
  37.     root, #---------------------------#----+----------------101000001-------+---------------+
  38.     text='YouTube Video Downloader',  #
  39.     width=30, #------#----------------#-----------------------+-------------------------------------------+-------------------------+
  40.     relief='sunken', #
  41.     bd=4,       #----#
  42.     bg="black", #--------------#
  43.     font=('Courier New',26),   #
  44.     fg='red') #----------------#
  45. introlable.place(x=50,y=5)     #
  46. #------------------------------#
  47. #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  48. #----------------------------------#------------------+------------------------------------+--------------------------+
  49. Label( #---------------------------#
  50.     root,  #-----------------------#
  51.     text='Enter YouTube Link',     #
  52.     font=('Courier New', 12),      #
  53.     relief="sunken",   #-----------#----------+---------------------+-----------------------------+1010000010+-----------------------+
  54.     bg='black', #------#
  55.     fg="lime",  #----------#
  56.     ).place(x=280, y=70)   #
  57. #--------------------------#
  58. #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  59. #--ENTRY WIDGETS-#-----------------------+-------------------------------------------------------------------------------------------------------------------+-----------------------+
  60. url_box = Entry( #
  61.     root, #------#---------------#--------------------------------------------+------------------+-------------+
  62.     font=('Courier New',30),#----#
  63.     width=30 #-------------------#---------+------------------+-----+
  64.     )  #-------------------------#
  65. url_box.place(x=7, y=110)        #--------------+-------------------------------------------+
  66. #--------------------------------#
  67. #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  68. #--BUTTON WIDGETS-------------------#------------------+-----------------------------------------------+----------------------+
  69. btn = Button( #---------------------#
  70.     root,  #------------------------#---------------------+--------------------------------------------------------------------------------------------------+
  71.     text='--DOWNLOAD--', #----------#
  72.     bg="black", #-------------------#
  73.     font=('Courier New', 25),       #
  74.     fg="orange",  #---#-------------#------+------------------------+010001111001+--------------------------------------+
  75.     command=threading #
  76.     ) #---------------#-------#
  77. btn.place(x=240, y=165)       #
  78. #-----------------------------#
  79. #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  80. #+++++++++++++++#------------------------------+-------------------------------------+
  81. root.mainloop() #
  82. #+++++++++++++++#
  83. ##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++##
  84. ##=================================================================================================================================================##
  85. ##-------------------------------------------------------------------------------------------------------------------------------------------------##
  86. ##                                                                                                                                                 ##
  87. ##                                                                                        ##   //                                                  ##
  88. ##----+-#########\   ########  -+#######\\-- +##########   #######\\        /#######\\    ##  //     ######---+-##      ##       /#######\\        ##
  89. ##      ##-          ##|--|##    ##-     ##   ##           ##-     ##      ||-----        ## //        ##       ##----+-##      ||-----         +--##
  90. ##      ##           ##|  |##  -+##    +--##  #######      ##       ##  -- \\#######\\    ## \\        ##       ##      ##------\\#######\\-------+##
  91. ##      ##-        +-##|--|##    ##-     ##   ##           ##-     ##         ------||    ##  \\       ##       ##      ##         ------||--------##
  92. ##      #########/   ########  -#######//-  -+##########   #######//       \\######//     ##   \\    ######---+-#####   #####   \\######//------+--##
  93. ##                                                                                                                                                 ##
  94. ##                                                          https://CodedSkills.net                                                                ##
  95. ##-------------------------------------------------------------------------------------------------------------------------------------------------##
  96. ##=================================================================================================================================================##
  97. ##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++##
  98.  
  99.  
  100. ##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++##
  101. ##=======================================================================================================================================================================================##
  102. ##---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------##
  103. ##                                                                                                                                                                                       ##
  104. ##           ###       #######\    #######\       #######       ########     ##  ##     ########     ########       #######     ########       ####        ##         /#######\\         ##
  105. ##          #-##            //          //        \   //    =      ##        ##  ##        ##        ##|--|##       ##  //         ##         //  \\       ##        ||-                 ##
  106. ##            ##          ##\\        ##\\           //            ##        ##  ##        ##        ##|  |##       ###\\          ##        //====\\      ##        \\#######\\         ##
  107. ##            ##            //          //          //             ##        ##  ##        ##        ##|--|##       ##  \\         ##       //      \\     ##                 ||         ##
  108. ##       ##########   ########--  ########--       //       =      ##         ####         ##        ########       ##   \\     ########   //        \\    #######   \\######//          ##
  109. ##                                                                                                                                                                                       ##
  110. ##                                                                         https://1337tutorials.net                                                                                     ##
  111. ##---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------##
  112. ##=======================================================================================================================================================================================##
  113. ##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++##
  114.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement