Created
February 14, 2023 13:28
-
-
Save MShirazAhmad/ebdf32bff6a2c8de8f8752b27eb3920a to your computer and use it in GitHub Desktop.
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
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