Skip to content

Youtube transcript source not working: 'YouTubeTranscriptApi' has no attribute 'get_transcript' #294

@greatwitenorth

Description

@greatwitenorth

It looks like youtube transcripts aren't working as intended. I've submitted several youtube video which I know contain transcripts, but when I check my langchain trace I see the following error:

No captions available for this video. Error: type object 'YouTubeTranscriptApi' has no attribute 'get_transcript'

Full input:

<DOCUMENT><DOCUMENT_METADATA>

{'url': 'https://www.youtube.com/watch?v=F1Hb7PNsaxU', 'video_id': 'F1Hb7PNsaxU', 'title': 'Revenue Factory Data + Mathematical Models Explained', 'author': 'Roadmap Agency', 'thumbnail': 'https://i.ytimg.com/vi/F1Hb7PNsaxU/hqdefault.jpg', 'document_type': 'YouTube Video Document', 'has_transcript': False}

</DOCUMENT_METADATA>

<DOCUMENT_CONTENT>

<DOCUMENT>
<METADATA>
TITLE: Revenue Factory Data + Mathematical Models Explained
URL: https://www.youtube.com/watch?v=F1Hb7PNsaxU
VIDEO_ID: F1Hb7PNsaxU
AUTHOR: Roadmap Agency
THUMBNAIL: https://i.ytimg.com/vi/F1Hb7PNsaxU/hqdefault.jpg
</METADATA>
<CONTENT>
FORMAT: transcript
TEXT_START
No captions available for this video. Error: type object 'YouTubeTranscriptApi' has no attribute 'get_transcript'
TEXT_END
</CONTENT>
</DOCUMENT>

</DOCUMENT_CONTENT></DOCUMENT>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions