sapher / Youtubedl Java
Licence: wtfpl
Java wrapper for youtubedl executable
Stars: ✭ 102
Programming Languages
java
68154 projects - #9 most used programming language
Labels
Projects that are alternatives of or similar to Youtubedl Java
Crunchyroll Downloader
A little GUI to download crap from crunchyroll.
Stars: ✭ 54 (-47.06%)
Mutual labels: youtube-dl
Hitomi Downloader
🍰 Desktop application to download images/videos/music/text from Hitomi.la and other sites, and more.
Stars: ✭ 1,154 (+1031.37%)
Mutual labels: youtube-dl
Youtube Dl Subscriptions
Download all new videos from your YouTube subscriptions
Stars: ✭ 94 (-7.84%)
Mutual labels: youtube-dl
Youtubeextractor
Extracts Youtube urls for streaming and downloading purpose.
Stars: ✭ 58 (-43.14%)
Mutual labels: youtube-dl
Youtube Api
A way to host your own API that converts youtube video's to mp3/mp4 and returns a download/stream link and information.
Stars: ✭ 76 (-25.49%)
Mutual labels: youtube-dl
Firedm
python open source (Internet Download Manager) with multi-connections, high speed engine, based on python, LibCurl, and youtube_dl https://github.com/firedm/FireDM
Stars: ✭ 977 (+857.84%)
Mutual labels: youtube-dl
Macytdl
A macOS GUI front-end for the youtube-dl video downloader
Stars: ✭ 52 (-49.02%)
Mutual labels: youtube-dl
Fast Youtube To Mp3 Converter Api
Very Fast YouTube to MP3 & MP4 Converter API
Stars: ✭ 69 (-32.35%)
Mutual labels: youtube-dl
Youtube Dl Gui
A cross platform front-end GUI of the popular youtube-dl written in wxPython.
Stars: ✭ 7,914 (+7658.82%)
Mutual labels: youtube-dl
Pornhub Downloader
Bash Script for downloading content from PornHub (the easy way)
Stars: ✭ 87 (-14.71%)
Mutual labels: youtube-dl
Youtub.ly Android
An android app to download 📹 videos and songs from youtube to phone internal storage
Stars: ✭ 17 (-83.33%)
Mutual labels: youtube-dl
Youtube Dl
Fuck the RIAA, this time with full commit history and all branches.
Stars: ✭ 69 (-32.35%)
Mutual labels: youtube-dl
Youtube Dl Android
A basic implementation of youtube-dl in Android/Java
Stars: ✭ 102 (+0%)
Mutual labels: youtube-dl
Ytcc
Command line tool to keep track of your favorite playlists on YouTube and many other places.
Stars: ✭ 92 (-9.8%)
Mutual labels: youtube-dl
Archivebox
🗃 Open source self-hosted web archiving. Takes URLs/browser history/bookmarks/Pocket/Pinboard/etc., saves HTML, JS, PDFs, media, and more...
Stars: ✭ 12,383 (+12040.2%)
Mutual labels: youtube-dl
youtubedl-java
A simple java wrapper for youtube-dl executable
There's a lot of thing left to do. Parsing output is one of them. Too bad, youtube-dl doesn't output formatted data.
Prerequisite
⚠️ Youtube-dl should be installed and available in your `$PATH.
How to properly install YoutubeDL executable
Otherwise you will get this error :
Cannot run program "youtube-dl" (in directory "/Users/my/beautiful/path"): error=2, No such file or directory
Usage
Installation
You can use jitpack.io to add the library to your project.
Gradle
Step 1 : Add jitpack repository to your build file
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
Step 2: Add the dependency
dependencies {
compile 'com.github.sapher:youtubedl-java:1.+'
}
Make request
// Video url to download
String videoUrl = "https://www.youtube.com/watch?v=dQw4w9WgXcQ";
// Destination directory
String directory = System.getProperty("user.home");
// Build request
YoutubeDLRequest request = new YoutubeDLRequest(videoUrl, directory);
request.setOption("ignore-errors"); // --ignore-errors
request.setOption("output", "%(id)s"); // --output "%(id)s"
request.setOption("retries", 10); // --retries 10
// Make request and return response
YoutubeDLResponse response = YoutubeDL.execute(request);
// Response
String stdOut = response.getOut(); // Executable output
You may also specify a callback to get notified about the progress of the download:
...
YoutubeDLResponse response = YoutubeDL.execute(request, new DownloadProgressCallback() {
@Override
public void onProgressUpdate(float progress, long etaInSeconds) {
System.out.println(String.valueOf(progress) + "%");
}
});
Links
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].