Package io.github.thoroldvix.api
Class BulkTranscriptRequest
java.lang.Object
io.github.thoroldvix.api.BulkTranscriptRequest
Request object for retrieving transcripts.
Contains an API key required for the YouTube V3 API, and optionally a file path to the text file containing the authentication cookies. If cookies are not provided, the API will not be able to access age restricted videos. Also contains a flag to stop on error or continue on error. Defaults to false if not provided.
-
Constructor Summary
ConstructorsConstructorDescriptionBulkTranscriptRequest
(String apiKey) BulkTranscriptRequest
(String apiKey, boolean stopOnError) -
Method Summary
-
Constructor Details
-
BulkTranscriptRequest
-
BulkTranscriptRequest
-
-
Method Details
-
getApiKey
- Returns:
- API key for the YouTube V3 API (see Getting started)
-
isStopOnError
public boolean isStopOnError()- Returns:
- Whether to stop if transcript retrieval fails for a video. If false, all transcripts that could not be retrieved will be skipped, otherwise an exception will be thrown on the first error.
-