.. _output_path: Output Path =========== if you want to download a video to a specific directory:: from pytubefix import YouTube from pytubefix.cli import on_progress url = "url" yt = YouTube(url, on_progress_callback = on_progress) ys = yt.streams.get_highest_resolution() ys.download(output_path="path/to/directory")