from flushai.integrations.youtube import YoutubeSplitter

Initialization

No API key is required.

splitter = YoutubeSplitter()

Retrieving Results

The search function can be used to retrieve results by passing in a Youtube url. By default, only 100 images are retrieved, but you can pass in a custom number of images to retrieve. Additionally, you can pass in how many frames to skip per each retrieved image. By default, this is set to 30 frames.

splitter.search("youtube_url", skip_frames=60, num=50)

A Document is returned.