youtube_explode_dart 0.0.2 youtube_explode_dart: ^0.0.2 copied to clipboard
A port in dart of the youtube explode library. Support serveral API functions.
import 'package:youtube_explode_dart/src/youtube_explode_base.dart';
Future<void> main() async {
// Parse the video id from the url.
var id = YoutubeExplode.parseVideoId(
'https://www.youtube.com/watch?v=bo_efYhYU2A');
var yt = YoutubeExplode();
var video = await yt.getVideo(id);
print('Title: ${video.title}');
// Close the YoutubeExplode's http client.
yt.close();
}