You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been playing around with different document loaders. One of them has been the Youtube document loader. The problem I have and it seems others have encountered in the issue with Pytube.
KeyError Traceback (most recent call last)
File ~/Documents/langchain_2/langenv/lib/python3.8/site-packages/pytube/main.py:341, in YouTube.title(self)
340 try:
--> 341 self._title = self.vid_info['videoDetails']['title']
342 except KeyError:
343 # Check_availability will raise the correct exception in most cases
344 # if it doesn't, ask for a report.
KeyError: 'videoDetails'
I built a transcription and summary app via Flask using Pytube and had the same issue. Sometimes it works, then it stops working.
Is there a way I can use something more reliable like yt_dlp instead. It seems Pytube have not had much activity and barely fix their bugs.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've been playing around with different document loaders. One of them has been the Youtube document loader. The problem I have and it seems others have encountered in the issue with Pytube.
KeyError Traceback (most recent call last)
File ~/Documents/langchain_2/langenv/lib/python3.8/site-packages/pytube/main.py:341, in YouTube.title(self)
340 try:
--> 341 self._title = self.vid_info['videoDetails']['title']
342 except KeyError:
343 # Check_availability will raise the correct exception in most cases
344 # if it doesn't, ask for a report.
KeyError: 'videoDetails'
I built a transcription and summary app via Flask using Pytube and had the same issue. Sometimes it works, then it stops working.
Is there a way I can use something more reliable like yt_dlp instead. It seems Pytube have not had much activity and barely fix their bugs.
Beta Was this translation helpful? Give feedback.
All reactions