FLUTTER ECOSYSTEM

f-person/youtube_caption_scraper

YouTube에서 자막/자막을 분석하는 Dart 패키지

youtube_caption_scraper 프로젝트 이미지
Stars
19
Forks
4
최근 푸시(UTC)
2026. 3. 28.
프로젝트 상태
활성
arshak kharnogh GitHub avatar
GITHUB User

arshak kharnogh ↗

software artist | founded in artsakh 👽☮🤸‍♀️️📀

언어Dart

기술 주제

사용 중인 의존성

의존성 목록 4 개

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

codecov Pub version

A Dart package that parses lyrics from YouTube. No authentication is required.

Usage

// Instantiate the scraper.
final captionScraper = YouTubeCaptionScraper(); 

// Fetch caption tracks – these are objects containing info like
// base url for the caption track and language code.
final captionTracks = await captionScraper.getCaptionTracks('video-url');

// Fetch the subtitles by providing it with a `CaptionTrack`
// from `getCaptionTracks`.
final subtitles = await captionScraper.getSubtitles(captionTracks[0]);

// Use the subtitles however you want.
for (final subtitle in subtitles) {
  print('${subtitle.start} - ${subtitle.duration} - ${subtitle.text}');
}

For more info see example or check the API reference.

Credits

The package is heavily inspired by algolia/youtube-captions-scraper.