The `download` function in the Python library `pytube` is used to download YouTube videos. It allows users to specify the desired video resolution and output location. This function streams the video from YouTube and saves it locally onto the user's device. It provides a convenient way to programmatically download YouTube videos using Python.
Python YouTube.download - 30 examples found. These are the top rated real world Python examples of pytube.YouTube.download extracted from open source projects. You can rate examples to help us improve the quality of examples.