youtube_explode/example/example.dart

13 lines
308 B
Dart
Raw Normal View History

2020-02-20 22:45:36 +01:00
import 'package:youtube_explode_dart/youtube_explode_dart.dart';
2020-02-20 19:50:10 +01:00
Future<void> main() async {
var yt = YoutubeExplode();
2020-06-05 20:08:04 +02:00
var video =
await yt.videos.get('https://www.youtube.com/watch?v=bo_efYhYU2A');
2020-02-20 19:50:10 +01:00
print('Title: ${video.title}');
// Close the YoutubeExplode's http client.
yt.close();
}