Skip to content

Commit 44c57d4

Browse files
committed
Youtube video Downloader
Changes committed: modified: README.md new file: YoutubeDownloader/Screenshot.png deleted: YoutubeDownloader/YoutubeDownloader.py new file: YoutubeDownloader/youtube_downloader.py
1 parent cd500eb commit 44c57d4

File tree

4 files changed

+48
-47
lines changed

4 files changed

+48
-47
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ This repository contains **Some mini projects** implemented in **Python**
1111

1212
![image](https://raw.githubusercontent.com/its-Kumar/Python_Projects/master/Python_GUI/PYTHON%20CALCULATOR/calc.png)
1313

14+
* Youtube Video Downloader
15+
16+
![youtube](YoutubeDownloader/Screenshot.png)
17+
1418
---
1519

1620
## Author

YoutubeDownloader/Screenshot.png

7.99 KB
Loading

YoutubeDownloader/YoutubeDownloader.py

-47
This file was deleted.
+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
"""
2+
Youtube Downloader
3+
-----------------
4+
5+
Python GUI Application
6+
"""
7+
8+
# Import Libraries
9+
from tkinter import Tk, Label, Entry, Button, StringVar
10+
# pip install pytube3 # install pytube
11+
from pytube import YouTube
12+
13+
# ================ App ==================
14+
ROOT = Tk()
15+
ROOT.geometry("400x350")
16+
ROOT.title("Youtube Downloader")
17+
18+
# =========== Global Area ==============
19+
MYVAR = StringVar()
20+
LINK = StringVar()
21+
22+
23+
def download():
24+
try:
25+
MYVAR.set("Downloading.... ")
26+
ROOT.update()
27+
YouTube(LINK.get()).streams.first().download()
28+
print(LINK.get())
29+
LINK.set("Video Downloaded successfully...")
30+
except:
31+
MYVAR.set("Mistake")
32+
ROOT.update()
33+
LINK.set("Enter correct LINK!!")
34+
35+
36+
Label(ROOT, text='Welcome to Youtube Downloader',
37+
font='Consolas 15 bold').pack()
38+
MYVAR.set("Enter the LINK below")
39+
Entry(ROOT, textvariable=MYVAR, width=40).pack(pady=10)
40+
Entry(ROOT, textvariable=LINK, width=40).pack(pady=10)
41+
Button(ROOT, text="Download Video", command=download).pack()
42+
43+
ROOT.mainloop()
44+
# ============== End ============================

0 commit comments

Comments
 (0)