Python project
YouTube Video Downloader Python Project
YouTube Video Downloader Python Project
The Youtube downloader project is a python project. The object of this project is to download any type of video in a fast and easy way from youtube in your device.
In this python project, user has to copy the youtube video URL that they want to download and simply paste that URL in the ‘paste link here’ section and click on the download button, it will start downloading the video. When video downloading finishes, it shows a message ‘downloaded’ popup on the window below the download button.
Project Prerequisites:
To implement this project we use basic concept of python, tkinter, pytube library.
Tkinter is a standard GUI library and it is one of the easiest ways to build a GUI application
pytube used for downloading videos from youtube
To install the required modules run pip installer command on the command line:
pip install tkinter
Pip install pytube
Code:
from tkinter import *
from pytube import YouTube
root = Tk()
root.geometry('500x300')
root.resizable(0,0)
root.title("DataFlair-youtube video downloader")
Label(root,text = 'Youtube Video Downloader', font ='arial 20 bold').pack()
##enter link
link = StringVar()
Label(root, text = 'Paste Link Here:', font = 'arial 15 bold').place(x= 160 , y = 60)
link_enter = Entry(root, width = 70,textvariable = link).place(x = 32, y = 90)
#function to download video
def Downloader():
url =YouTube(str(link.get()))
video = url.streams.first()
video.download()
Label(root, text = 'DOWNLOADED', font = 'arial 15').place(x= 180 , y = 210)
Button(root,text = 'DOWNLOAD', font = 'arial 15 bold' ,bg = 'pale violet red', padx = 2, command = Downloader).place(x=180 ,y = 150)
root.mainloop()
Output:
With this project in python, we have successfully developed the youtube video downloader project using python. We used the popular Tkinter library that used for rendering graphics. We use the pytube library to download videos from youtube.
Your post is very informative about TikTok To Mp3 Converter Tool for Free for me. excellent post, I really like this post, and thanks for sharing.
ReplyDelete