New error on pytube fixed

What is pytube?

It is a module for Python that let you download a video with pytube.

In this page I will try to take see how to fix some issues that sometimes occur with this module.

Update: error 01.08.2021

1. uninstall pytube pip unistall pytube

2. Install it from here pip install git+https://github.com/Zeecka/pytube@fix_1060

How to download a file on Youtube with Pytube

from pytube import YouTube
url = input("Video url: > ")
yt = YouTube(url)
stream = yt.streams.first()
stream.download() # this will download in your current working Dir

Download a playlist

from pytube import Playlist
pl = Playlist("https://www.youtube.com/watch?v=Edpy1szoG80&list=PL153hDY-y1E00uQtCVCVC8xJ25TYX8yPU")
pl.download_all()

Subscribe to the newsletter for updates
Tkinter templates
Avatar My youtube channel

Twitter: @pythonprogrammi - python_pygame

Videos

Speech recognition game

Pygame's Platform Game

Other Pygame's posts

Published by pythonprogramming

Started with basic on the spectrum, loved javascript in the 90ies and python in the 2000, now I am back with python, still making some javascript stuff when needed.