#๐Ÿ”’ youtube downloader

9 messages ยท Page 1 of 1 (latest)

patent oreBOT
#

@past veldt

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

past veldt
#

yo i was trying to do youtube video downloader for fun from tutorial but i cant download any video idk what is the problem but i hope that yall can help me
heres tutorial from yt https://www.youtube.com/watch?v=NI9LXzo0UY0&t=1092s
and my code

import tkinter
import customtkinter
from pytube import YouTube

def startDownload():
    try:
        ytLink = link.get()
        ytObject = YouTube(ytLink)
        video = ytObject.streams.get_highest_resolution
        video.download()
    except:
        print("Youtube link is invalid")
    finishLabel.configure(text="Downloaded")

# System Settings
customtkinter.set_appearance_mode("System")
customtkinter.set_default_color_theme("blue")

#App Frame
app =customtkinter.CTk()
app.geometry("720x480")
app.title("Youtube Dowloader")

#UI Elements
title = customtkinter.CTkLabel(app, text="Insert a youtube link")
title.pack(padx=10, pady=10)

#Link input
url_var = tkinter.StringVar()
link = customtkinter.CTkEntry(app, width=350, height=40, textvariable=url_var)
link.pack()

#Finish Downloading
finishLabel = customtkinter.CTkLabel(app, text="")
finishLabel.pack()

#Download Button
download = customtkinter.CTkButton(app, text="Download", command=startDownload)
download.pack(padx=10, pady=10)

# Run app
app.mainloop()```

Keep exploring at http://brilliant.org/developedbyed/. Get started for free, and hurryโ€”the first 200 people get 20% off an annual premium subscription.

In today's episode we will be building a modern python GUI app using Tkinter and CustomTkinter. We will also be integrating pytube which will allow us to download our youtube videos in different...

โ–ถ Play video
patent oreBOT
#
Our youtube-dl, or equivalents, policy

Per Python Discord's Rule 5, we are unable to assist with questions related to youtube-dl, pytube, or other YouTube video downloaders, as their usage violates YouTube's Terms of Service.

For reference, this usage is covered by the following clauses in YouTube's TOS, as of 2021-03-17:

The following restrictions apply to your use of the Service. You are not allowed to:

1. access, reproduce, download, distribute, transmit, broadcast, display, sell, license, alter, modify or otherwise use any part of the Service or any Content except: (a) as specifically permitted by the Service;  (b) with prior written permission from YouTube and, if applicable, the respective rights holders; or (c) as permitted by applicable law;

3. access the Service using any automated means (such as robots, botnets or scrapers) except: (a) in the case of public search engines, in accordance with YouTubeโ€™s robots.txt file; (b) with YouTubeโ€™s prior written permission; or (c) as permitted by applicable law;

9. use the Service to view or listen to Content other than for personal, non-commercial use (for example, you may not publicly screen videos or stream music from the Service)
copper cobalt
#

as this is in violate of youtube's terms of service we can't help with this project, sorry

past veldt
#

alr thanks

patent oreBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.

#

๐Ÿ”’ youtube downloader