Skip to content

Instantly share code, notes, and snippets.

@tkoki
Created March 28, 2022 23:42
Show Gist options
  • Save tkoki/8b6d6dc1f5112ca00854745f77d6f1ef to your computer and use it in GitHub Desktop.
Save tkoki/8b6d6dc1f5112ca00854745f77d6f1ef to your computer and use it in GitHub Desktop.
pytubeでYouTube動画をダウンロードする
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