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
* Retrieves transcripts for all videos in a playlist, or all videos for a specific channel.
9
+
* <p>
10
+
* Playlists and channel videos are retrieved from the YouTube API, so you will need to have a valid api key to use this.
11
+
* </p>
12
+
* <p>
13
+
* To get implementation for this interface see {@link TranscriptApiFactory}
14
+
* </p>
15
+
*/
16
+
publicinterfacePlaylistsTranscriptApi {
17
+
18
+
/**
19
+
* Retrieves transcript lists for all videos in the specified playlist using provided API key and cookies file from a specified path.
20
+
*
21
+
* @param playlistId The ID of the playlist
22
+
* @param apiKey API key for the YouTube V3 API (see <a href="https://developers.google.com/youtube/v3/getting-started">Getting started</a>)
23
+
* @param continueOnError Whether to continue if transcript retrieval fails for a video. If true, all transcripts that could not be retrieved will be skipped,
24
+
* otherwise an exception will be thrown.
25
+
* @param cookiesPath The file path to the text file containing the authentication cookies. Used in the case if some videos are age restricted see {<a href="https://github.com/Thoroldvix/youtube-transcript-api#cookies">Cookies</a>}
26
+
* @return A map of video IDs to {@link TranscriptList} objects
27
+
* @throws TranscriptRetrievalException If the retrieval of the transcript lists fails
* Retrieves transcript lists for all videos in the specified playlist using provided API key.
34
+
*
35
+
* @param playlistId The ID of the playlist
36
+
* @param apiKey API key for the YouTube V3 API (see <a href="https://developers.google.com/youtube/v3/getting-started">Getting started</a>)
37
+
* @param continueOnError Whether to continue if transcript retrieval fails for a video. If true, all transcripts that could not be retrieved will be skipped,
38
+
* otherwise an exception will be thrown.
39
+
* @return A map of video IDs to {@link TranscriptList} objects
40
+
* @throws TranscriptRetrievalException If the retrieval of the transcript lists fails
* Retrieves transcript lists for all videos for the specified channel using provided API key and cookies file from a specified path.
47
+
*
48
+
* @param channelName The name of the channel
49
+
* @param apiKey API key for the YouTube V3 API (see <a href="https://developers.google.com/youtube/v3/getting-started">Getting started</a>)
50
+
* @param cookiesPath The file path to the text file containing the authentication cookies. Used in the case if some videos are age restricted see {<a href="https://github.com/Thoroldvix/youtube-transcript-api#cookies">Cookies</a>}
51
+
* @param continueOnError Whether to continue if transcript retrieval fails for a video. If true, all transcripts that could not be retrieved will be skipped,
52
+
* otherwise an exception will be thrown.
53
+
* @return A map of video IDs to {@link TranscriptList} objects
54
+
* @throws TranscriptRetrievalException If the retrieval of the transcript lists fails
55
+
* @throws TranscriptRetrievalException If the retrieval of the transcript lists fails
* Retrieves transcript lists for all videos for the specified channel using provided API key.
62
+
*
63
+
* @param channelName The name of the channel
64
+
* @param apiKey API key for the YouTube V3 API (see <a href="https://developers.google.com/youtube/v3/getting-started">Getting started</a>)
65
+
* @param continueOnError Whether to continue if transcript retrieval fails for a video. If true, all transcripts that could not be retrieved will be skipped,
66
+
* otherwise an exception will be thrown.
67
+
* @return A map of video IDs to {@link TranscriptList} objects
68
+
* @throws TranscriptRetrievalException If the retrieval of the transcript lists fails
0 commit comments