reel

import tkinter as tk from pytube import YouTube def download_reel(): link = link_entry.get() try: yt = YouTube(link) video = yt.streams.filter(file_extension='mp4', res='360p').first() video.download() status_label.config(text="Download successful!") except Exception as e: status_label.config(text=f"Error: {str(e)}") # GUI setup root = tk.Tk() root.title("Instagram Reel Downloader") # Label and Entry for the link link_label = tk.Label(root, text="Instagram Reel Link:") link_label.pack(pady=10) link_entry = tk.Entry(root, width=30) link_entry.pack(pady=10) # Download Button download_button = tk.Button(root, text="Download Reel", command=download_reel) download_button.pack(pady=10) # Status Label status_label = tk.Label(root, text="") status_label.pack(pady=10) root.mainloop()

Comments