Youtube To Text
ai-research-agent / extractor/url-to-content/youtube-to-text
Extract
convertYoutubeToText()
function convertYoutubeToText(videoUrl: string, options?: object): object;Defined in: src/extractor/url-to-content/youtube-to-text.js:19
Fetch youtube.com video's webpage HTML for embedded transcript. If blocked, use scraper of alternative sites providing transcripts.
Parameters
| Parameter | Type | Description |
|---|---|---|
|
| |
| { | |
|
| default=true - true to return timestamps, default true |
|
| default=5 - http request timeout |
Returns
object
where content is the full text of the transcript, timestamps is a string of comma-separated [characterIndex, timeSeconds] pairs, and word_count is the number of words in the transcript.
| Name | Type | Defined in |
|---|---|---|
|
| |
|
| |
|
|
Author
Other
fetchViaYoutubeToTranscriptCom()
function fetchViaYoutubeToTranscriptCom(videoId: any, options: object): any;Defined in: src/extractor/url-to-content/youtube-to-text.js:153
Fetch-based scraper of youtubetotranscript.com
Parameters
| Parameter | Type |
|---|---|
|
|
| { } |
Returns
any
content, timestamps - where content is the full text of the transcript, and timestamps is an array of [characterIndex, timeSeconds]