https://github.com/x45iq/jtube
Java library for parsing: videos,shorts,playlists,channels and downloading videos
https://github.com/x45iq/jtube
java library parser youtube youtube-api youtube-downloader youtube-video
Last synced: 4 months ago
JSON representation
Java library for parsing: videos,shorts,playlists,channels and downloading videos
- Host: GitHub
- URL: https://github.com/x45iq/jtube
- Owner: x45iq
- License: mit
- Created: 2024-03-11T19:24:27.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-13T22:39:21.000Z (about 2 years ago)
- Last Synced: 2025-01-15T00:26:42.446Z (over 1 year ago)
- Topics: java, library, parser, youtube, youtube-api, youtube-downloader, youtube-video
- Language: Java
- Homepage:
- Size: 32.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.oracle.com/java/technologies/downloads/)
[](https://opensource.org/license/mit)
# jtube
Java library for parsing: videos,shorts,playlists,channels and downloading videos
## Description
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.
## Features
- 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
## Quickstart
Will be later
### Installation
jtube requires an installation of Java 8+
To install from Gradle:
```gradle
implementation 'io.github.x45iq:jtube:1.0.1'
```
To install from Maven:
```maven
io.github.x45iq
jtube
1.0.1
```
### Using jtube
To get video by url
```java
if(VideoParser.isUrlSupported(url)){
Video video = new VideoParser().parse(url);
}
```
To get all videos in playlist
```java
if(PlaylistParser.isUrlSupported(url)) {
Playlist playlist = new PlaylistParser().parse(url);
playlist.videos().forEach(System.out::println);
}
```
To get all videos in channel
```java
if(ChannelParser.isUrlSupported(url)) {
Channel channel = new ChannelParser().parse(url);
channel.videos().forEach(System.out::println);
}
```
To download any StreamingData from video
```java
StreamingData streamingData = ...;
File folderToSave = new File("...");
File result = new StreamingDataDownloader.Builder()
.streamingData(streamingData)
.folder(folderToSave)
.progressCallback(System.out::println)
.build()
.download();
```