Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 6 days 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 (7 months ago)
- Default Branch: main
- Last Pushed: 2024-04-13T22:39:21.000Z (6 months ago)
- Last Synced: 2024-09-25T03:03:37.497Z (9 days 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
[![badge-jdk](https://img.shields.io/badge/jdk-8-green.svg)](https://www.oracle.com/java/technologies/downloads/)
[![License badge](https://img.shields.io/badge/license-MIT-green.svg)](https://opensource.org/license/mit)# jtube
Java library for parsing: videos,shorts,playlists,channels and downloading videos
## DescriptionI 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();
```