-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
from the youtubeloader.ipynb file, i used the below snippet to fetch the metadata of the video like publishing date, views etc. but is throwing me an error.
Code:
loader = YoutubeLoader.from_youtube_url("https://youtu.be/zJBpRn2zTco", add_video_info=True)
docs = loader.load()
metadata = docs[0].metadata
print(metadata)
Error:
Traceback (most recent call last):
File "XXXXX\Lib\site-packages\pytube_main_.py", line 341, in title
self._title = self.vid_info['videoDetails']['title']
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: 'videoDetails'
raise exceptions.PytubeError(
pytube.exceptions.PytubeError: Exception while accessing title of https://youtube.com/watch?v=zJBpRn2zTco. Please file a bug report at https://github.com/pytube/pytube
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels