-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path14_Insta_Downloader.py
35 lines (25 loc) · 1.04 KB
/
14_Insta_Downloader.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import instaloader
from PIL import ImageTK, Image
import tkinter as tk
from tkinter import messagebox
win = tk.TK()
win.title('Instagram Image Downloader')
def imgDownload():
ig = instaloader.instaloader()
profile = entry.get()
ig.download_profile(profile, profile_pic_only=True)
messagebox.showinfo()("Status", "Image Downloader Succesfully")
img = Image.open("ig.png")
img = img.resize((200, 200), Image.ANTIALIAS)
resized_img = ImageTK.PhotoImage(img)
title = tk.Lable(win, text ="Instagram Image Downloader", font=("Times", 20, "bold"))
title.grid(row=0, column=0, columnspan=5, padx=30, pady=10)
image = tk.Label(win, image=resized_img)
image.grid(row=2, column=0, columnspan=5, pady=20)
lable =tk.Label(win, text="Enter Username: ", font=("Arial", 10))
lable.grid(row=3, column=1, columnspan=3)
btn = tk.Entry(win, width=40)
entry.grid(row=3, column=1, columnspan=3)
btn = tk.Button(win, text="Download", command=imgDownload)
btn.grid(row=4, column=0, columnspan=5, pady=10)
win.mainloop()