https://github.com/thitlwincoder/direct_link
Direct link extractor from URL to stream and download directly
https://github.com/thitlwincoder/direct_link
dailymotion dart direct facebook flutter instagram link reddit soundcloud threads tiktok twitter vimeo vk youtube
Last synced: 20 days ago
JSON representation
Direct link extractor from URL to stream and download directly
- Host: GitHub
- URL: https://github.com/thitlwincoder/direct_link
- Owner: thitlwincoder
- License: mit
- Created: 2020-10-01T14:09:49.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-03-23T14:40:04.000Z (30 days ago)
- Last Synced: 2025-03-23T15:33:04.772Z (30 days ago)
- Topics: dailymotion, dart, direct, facebook, flutter, instagram, link, reddit, soundcloud, threads, tiktok, twitter, vimeo, vk, youtube
- Language: C++
- Homepage: https://pub.dev/packages/direct_link
- Size: 1.49 MB
- Stars: 29
- Watchers: 2
- Forks: 22
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# direct_link
[](https://pub.dev/packages/direct_link)
[](https://github.com/thitlwincoder/direct_link/commits/master)
[](https://github.com/thitlwincoder/direct_link)
[](https://github.com/thitlwincoder/direct_link/blob/master/LICENSE)
[](https://github.com/thitlwincoder)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 Websites
- Youtube
- Dailymotion
- Vimeo
- VK
- SoundCloud
- Tiktok
- Threads## Screenshot
## Getting Started
In the `pubspec.yaml` of your flutter project, add the following dependency:
```yaml
dependencies:
...
direct_link: latest
```In your library add the following import:
```dart
import 'package:direct_link/direct_link.dart';
```## Usage
```dart
var directLink = DirectLink();
```Use `check` function to check your link have been existed my support sites
```dart
var data = await directLink.check('url'); // add your url
```### Example
```dart
if (data != null) {
print(data.title);
print(data.thumbnail);
print(data.duration);
for (var e in data.links!) {
print(e.type);
print(e.quality);
print(e.link);
print('-' * 20);
}
}
```## Contribution
Feel free to file an [issue](https://github.com/thitlwincoder/direct_link/issues/new) if you find a problem or make pull requests.
All contributions are welcome :)