DEV Community

Sachin pagar
Sachin pagar

Posted on

Download youtube video using python

In my previous article, I used a library called pytube to download the videos. However, after some changes introduced by YouTube, it is not really usable anymore — any attempt to download videos results in KeyError: ‘url_encoded_fmt_stream_map’. Also, the library is not actively maintained anymore.
That is why in this article I suggest using pytube3, which is a fork of the original pytube library and has the error fixed (it only works with Python 3).
All the functionalities of the original library are preserved and we actually still use import pytube to import the library (even though we install it using pip install pytube3).

For detailed coding read this article
How to download youtube video using python

Top comments (0)