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 =
|
2020-10-24 14:54:42 +02:00
|
|
|
await yt.videos.get('https://www.youtube.com/watch?v=AI7ULzgf8RU');
|
2020-02-20 19:50:10 +01:00
|
|
|
|
|
|
|
print('Title: ${video.title}');
|
|
|
|
|
|
|
|
// Close the YoutubeExplode's http client.
|
|
|
|
yt.close();
|
|
|
|
}
|