direct_link 0.2.0 copy "direct_link: ^0.2.0" to clipboard
direct_link: ^0.2.0 copied to clipboard

Dart package for direct link extractor from URL to stream and download directly.

direct_link #

pub package Last Commits GitHub repo size License
Uploaded By

For those who want to create a movie and downloader app, this is a useful package.

You can get a direct link from the URL that my support sites.

Support Sites #

  • Facebook
  • Instagram
  • Youtube
  • Twitter
  • Dailymotion
  • Vimeo
  • VK
  • SoundCloud
  • Tiktok
  • Reddit
  • Threads

Getting Started #

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  ...
  direct_link: latest

Next we need to install this

# Dart
pub get

# Flutter
flutter packages get

In your library add the following import:

import 'package:direct_link/direct_link.dart';

Usage #

Use check class to check your link have been existed my support sites

var directLink = DirectLink();

var check = await directLink.check('url'); // add your url

Example #

if (check == null) {
  // null condition
}else{
    for (var element in check!) {
        print(element.quality);
        print(element.type);
        print(element.link);
    }
}

Contribution #

Feel free to file an issue if you find a problem or make pull requests.

All contributions are welcome :)

69
likes
0
pub points
81%
popularity

Publisher

unverified uploader

Dart package for direct link extractor from URL to stream and download directly.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

html, puppeteer

More

Packages that depend on direct_link