To download a video using the library in a script, you'll need to first import Source with pip: $ python -m pip install git+ Sometime, the pypi release becomes slightly outdated. To install from pypi with pip: $ python -m pip install pytube Pip is typically bundled with python installations, and you can find options Pytube requires an installation of python 3.6 or greater, as well as pip. For moreĭetailed information, please refer to pytube.io. This guide is only meant to cover the most basic usage of the library.
The quickstart guide below might be what you're looking for. If you just want to quickly download a single video,
Documentationĭetailed documentation about how to use the library can be found onįor most use cases. Pytube is a very serious, lightweight, dependency-free Python library (andĬommand-line utility) for downloading YouTube Videos. Have ideas for how pytube can be improved? Feel free to open an issue or a pull