I did not went too deep on the details of using the pytube library itself. This is just a very simple example for beginners. I would recommend reading the official documentation of the library to know all that you can with it. Here is the link: pytube.io/en/latest