Created
March 28, 2022 23:42
-
-
Save tkoki/8b6d6dc1f5112ca00854745f77d6f1ef to your computer and use it in GitHub Desktop.
pytubeでYouTube動画をダウンロードする
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
import pytube | |
link = input('Enter Youtube Video URL ') | |
yt = pytube.YouTube(link) | |
yt.streams.filter(progressive=True, file_extension='mp4').order_by('resolution').desc().first().download() | |
print('downloaded', link) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment