Date: 13 Mar 2023
Module : pytube Installation : pip install pytube About: pytube is a genuine, lightweight, dependency-free Python library (and command-line utility) for downloading YouTube videos. pytube also makes pipelining easy, allowing you to specify callback functions for different download events, such as on progress or on complete. Sample: from pytube import YouTube yt = YouTube('http://youtube.com/watch?v=2lAe1cqCOXo') vedio_file = yt.streams.filter(progressive=True, file_extension='mp4').get_by_resolution('360p') vedio_file.download("pycon_india.mp4") print("download completed") Output: >> ls pycon_india.mp4 Reference: https://pypi.org/project/pytube/
_______________________________________________ Chennaipy mailing list Chennaipy@python.org https://mail.python.org/mailman/listinfo/chennaipy