First of all, the latest version of pytube
(which gets installed with pip install pytube
is today the version 6.1.5; so you should probably be looking at that version's PyPI page instead. The brief documentation on the PyPI page says nothing about the Client
class; instead the main API class is YouTube
, as shown in this excerpt:
from pytube import YouTube
yt = YouTube("http://www.youtube.com/watch?v=Ik-RsDGPI5Y")
# Once set, you can see all the codec and quality options YouTube has made
# available for the perticular video by printing videos.
pprint(yt.get_videos())
The "PyTube" documentation at Read the Docs seems to be for a completely unrelated project. As far as I can see, this project is not available on PyPI.