PW Akshay

Generation

generate functionMon, 05 Dec 2022

Program to stream m3u8 url to youtube in python

from pytube import YouTube import os def stream_video(url): yt = YouTube(url) stream = yt.streams.filter(progressive=True, file_extension='mp4').order_by('resolution').desc().first() print(stream.download()) if __name__ == '__main__': url = 'https://www.youtube.com/watch?v=d7Vw-iO3pb8' stream_video(url)

Questions about programming?Chat with your personal AI assistant