Facebook
From Sweet Peccary, 1 Year ago, written in Python.
This paste is a reply to Pytube from Rodrigo - view diff
Embed
Download Paste or View Raw
Hits: 151
  1. from pytube import YouTube, Playlist
  2.  
  3. PLAYLIST_URL = input("Cole aqui a playlist que vocĂȘ deseja")
  4. playlist = Playlist(PLAYLIST_URL)
  5.  
  6. for url in playlist:
  7.     video = YouTube(url)
  8.     stream = video.streams.get_highest_resolution()
  9.     stream.download(output_path='playlist')