Created
August 1, 2023 10:46
-
-
Save makesomelayouts/dc93c26b1e76722708ab19b01d40c747 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| if __name__ == "__main__": | |
| links = [ | |
| "https://www.youtube.com/shorts/klmBTGQUkbM", | |
| "https://www.youtube.com/watch?v=hS5CfP8n_js" | |
| ] | |
| counter = 0 | |
| for link in links: | |
| yt = YouTube(link) | |
| print(f"Link #{counter}: {link}") | |
| counter += 1 | |
| print(f"Title: {yt.title}") | |
| print(f"Views: {yt.views}") | |
| print(f"Info: {yt.streams.get_highest_resolution()}\n") | |
| yd = yt.streams.get_highest_resolution() | |
| path = "D:/downloads" # folder where uploaded videos will be stored | |
| yd.download(path) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment