Skip to content

Instantly share code, notes, and snippets.

@arifsetyawan
Created October 7, 2021 13:56
Show Gist options
  • Save arifsetyawan/c5e1b981da6d3842f7038111fed0f7b6 to your computer and use it in GitHub Desktop.
Save arifsetyawan/c5e1b981da6d3842f7038111fed0f7b6 to your computer and use it in GitHub Desktop.
Download Youtube Videos
from pytube import YouTube
url = "https://www.youtube.com/watch?v=hS9jaTweuPU"
video = YouTube(url)
stream = video.streams.get_highest_resolution()
stream.download(output_path = '.')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment