Skip to content

Instantly share code, notes, and snippets.

@MShirazAhmad
Created February 14, 2023 13:28
Show Gist options
  • Save MShirazAhmad/ebdf32bff6a2c8de8f8752b27eb3920a to your computer and use it in GitHub Desktop.
Save MShirazAhmad/ebdf32bff6a2c8de8f8752b27eb3920a to your computer and use it in GitHub Desktop.
from pytube import Playlist
import pytube
playlist = Playlist('Playlist URL Goes Here...')
print('Number of videos in playlist: %s' % len(playlist.video_urls))
for video_url in playlist.video_urls:
print(video_url)
pytube.YouTube(video_url).streams.get_highest_resolution().download()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment