CODE
from pytube import YouTube def on_progress(stream, chunk, bytes_remaining): total_size = stream.filesize bytes_downloaded = to