Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for retrieving transcripts #500

Merged
merged 7 commits into from
Sep 10, 2023
Merged

Conversation

LuanRT
Copy link
Owner

@LuanRT LuanRT commented Sep 10, 2023

Adds support for fetching video transcripts.

Usage

import { Innertube } from 'youtubei.js';

const innertube = await Innertube.create({ generate_session_locally: true });

const transcript = await innertube.getTranscript('dWqNgzZwVJQ');

console.log(transcript.content.body.initial_segments);

Closes #483, #453.

@LuanRT LuanRT merged commit f94ea6c into main Sep 10, 2023
3 checks passed
@LuanRT LuanRT deleted the feat/video-transcript branch September 10, 2023 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6.0.2 - InnertubeError: Something went wrong at HorizontalList!
1 participant