Skip to main content

Download YouTube Video With Python

We used tkinter python library for this application below is the code for the application and output image.

from tkinter import *
from pytube import YouTube
ws = Tk()

ws.geometry('600x600')
ws.resizable(False, False)
ws.title('YouTube Video Downloader App')
label = Label(ws, text="YouTube Video Downloader",bg='cyan',font='monospace 20 bold').pack()

#put your link
link_video = StringVar()
label = Label(ws,text= 'paste your link your',font='monospace 20 bold').place(x=150, y=80)
entery_link = Entry(ws, width=70, textvariable=link_video).place(x=30, y=132)
#define a functio for downlaod
def DownloadVideo():
    url = YouTube(str(link_video.get()))
    video = url.streams.first()
    video.download()
    Label(ws, text='video downlaoded',font='arial 15 bold').place(x = 180,y=210)
Button(ws, text='Downlaod',font='arial 15',command=DownloadVideo, bg='Green').place(x=180, y= 150)
ws.mainloop()






Comments

Popular posts from this blog

Random Password Generator Using Python

  A  random password generator  is a software program, hardware device, or online tool that automatically generates a password using parameters that a user sets, including mixed-case letters, numbers, symbols, pronounceability, length, and strength. Here is the simple python code to generate password randomly. #random module import  random print ( "=================\nPassword Generator\n=================" ) print () #you can use more character here characters =  "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@_#$%&*0123456789" #Input  Number of password Num_Of_pass = int( input ( " How many passwords do you want?: " )) # Input length of password len_Of_pass = int( input ( ' Enter lenth of password you want to generate : ' )) print () print ( "Passwords are: " ) print () #for Number...

Getting Started with Django: Building Web Applications with Python

Getting started with Django part-01   Django is a high-level, powerful Python web framework that enables the rapid development of secure and maintainable websites. Here are the steps to get started with Django: Install Python: Before you can start using Django, you need to have Python installed on your system. You can download the latest version of Python from the official website: https://www.python.org/downloads/   Install Django: Once you have Python installed, you can install Django using pip (a package manager for Python) by running the following command in your terminal:   Pip install django   Create a new Django project: You can create a new Django project using the following command in your terminal:   django -admin startproject “name your project”   For example:-   djang o -admin startprojec t myprojec t   This will create a new Django project named myproject .   Create a new Django app: A Django project can contain multiple ...

Getting Started with Python

  Getting Started with Python     Python is a popular high-level programming language known for its simplicity and ease of use. Here are the steps you can follow to get started with Python:     Install Python on your computer:       The most recent version of Python may be downloaded from the Python website at https://www.python.org/downloads/. Ensure that the version you choose is compatible with your operating system, then follow the installation instructions.   Choose an Integrated Development Environment (IDE):       A software program known as an IDE offers a complete environment for authoring and running code. PyCharm, Visual Studio Code, and IDLE are a few of the well-known Python IDEs.   Learn the basics of Python:     Python is a great option for novices because of its clear and straightforward syntax. Variables, data types, operators, and control structures are good places to start. From there, you may...