Java library for parsing: videos,shorts,playlists,channels and downloading videos
I don't like web downloaders with adds and low info that's why I present to you jtube.
jtube is a lightweight library written in Java. It has some dependencies, but that's not a problem.
jtube allows you to get information about videos and more, and then download them with the ability to track the status.
- Support for video,shorts,playlist,channel
- Support for downloading video,subtitles,audio tracks with special language
- Ability to capture thumbnail URL
- Extensively documented source code
Will be later
jtube requires an installation of Java 8+
To install from Gradle:
implementation 'io.github.x45iq:jtube:1.0.1'
To install from Maven:
<dependency>
<groupId>io.github.x45iq</groupId>
<artifactId>jtube</artifactId>
<version>1.0.1</version>
</dependency>
To get video by url
if(VideoParser.isUrlSupported(url)){
Video video = new VideoParser().parse(url);
}
To get all videos in playlist
if(PlaylistParser.isUrlSupported(url)) {
Playlist playlist = new PlaylistParser().parse(url);
playlist.videos().forEach(System.out::println);
}
To get all videos in channel
if(ChannelParser.isUrlSupported(url)) {
Channel channel = new ChannelParser().parse(url);
channel.videos().forEach(System.out::println);
}
To download any StreamingData from video
StreamingData streamingData = ...;
File folderToSave = new File("...");
File result = new StreamingDataDownloader.Builder()
.streamingData(streamingData)
.folder(folderToSave)
.progressCallback(System.out::println)
.build()
.download();