t-youtube-transcript-fetcher
Version:
An enhanced TypeScript library for fetching YouTube transcripts with proxy support (based on youtube-transcript)
12 lines (11 loc) • 388 B
TypeScript
/**
* Regular expressions and constants used for YouTube transcript fetching
*/
export declare const CONSTANTS: {
/** Matches YouTube video URLs and extracts the video ID */
VIDEO_ID_REGEX: RegExp;
/** User agent string for making requests */
USER_AGENT: string;
/** Matches transcript XML format and extracts timing and text */
TRANSCRIPT_XML_REGEX: RegExp;
};