FLUTTER ECOSYSTEM

f-person/youtube_caption_scraper

YouTube से उपशीर्षक/उपलेखा को पार्स करने के लिए एक Dart पैकेज

youtube_caption_scraper प्रोजेक्ट कवर
Stars
19
Forks
4
अंतिम पुश (UTC)
28 मार्च 2026
प्रोजेक्ट स्थिति
सक्रिय
arshak kharnogh GitHub avatar
GITHUB User

arshak kharnogh ↗

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

भाषाएँDart

तकनीकी विषय

उपयोग की गई निर्भरताएँ

निर्भरता सूची 4 आइटम
  • html^0.15.4
  • http^1.1.0
  • lintsडेवलपमेंट^2.1.1
  • testडेवलपमेंट^1.24.6

मूल 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.