

Second line is asking for a YouTube URL and saving the entered input to a variable called “link”.The first line is importing the YouTube package into your Python program.You can also just open up your Powershell from Windows search and cd to the directory where your Python program is located. To open the Terminal, hit Ctrl+~ and then select from the dropdown and select powershell if not already selected. We’ll run our Python program using the Terminal in just a minute. Here’s what I’ve got in Visual Studio Code (below image). Then add these five lines to your file and save: from pytube import YouTube Note you may need to adjust 3.9 to whatever version you have: /Applications/Python\ 3.9/Install\ mand Finally, let’s do some coding! Do that by typing the below command and hit enter.

If you’re on a Mac, you may need to run the following command to tell your Mac’s Python install to use the certifi module. Install the certifi package by running this command: pip install certifi Without that Python may complain about an SSL related problem.

Now run the pip list command to see that pip has installed the pytube module (pytube should appear in the returned list of Packages) pip list Next, Import the Certifi Packageįor me I had to install the certifi package to get YouTube videos to download. Open up your Powershell or command prompt app and run it like this: pip install pytube Now that you have pip installed, you will want to run the following command. The installer should also by default install pip, the python package manager. See here for Windows install instructions. If you’re on a Windows 10 PC make sure to choose the option to add Python to your path (on the first screen of the installer). Run the installer and follow the on-screen instructions. If you don’t already have the latest Python version 3 installed on your PC, go to the Python website and Download the latest release for your OS (click the download button). JGXK_99nc5s: Downloading android player API JSONĮRROR: JGXK_99nc5s: Private video.First, install Python on your computer (if not already installed) playlist English Grammar: Downloading 52 videos WARNING: YouTube said: INFO - Unavailable videos will be hidden during playback PLzMXToX8KzqhKrURIhVTJMb0v-HeDM3gs: Downloading API JSON with unavailable videos WARNING: YouTube said: INFO - 8 unavailable videos are hidden PLzMXToX8KzqhKrURIhVTJMb0v-HeDM3gs: Downloading webpage I'm trying to see if I can make it ignore those hidden videosĮrror Given in Terminal: Enter your URL: I'm Downloading a Playlist which has some hidden Videos so python gives me DownloadError, I want to Download the Whole Playlist at once.
