Created
May 15, 2022 17:15
-
-
Save djerfy/cb43bd4da8c0a6182dcd616d53c01a1a to your computer and use it in GitHub Desktop.
How to download Youtube videos through Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pytube import YouTube | |
video = YouTube("https://www.youtube.com/ID") | |
video.streams.filter(res="1024p").first().download("~/Downloads/") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment