https://github.com/siketyan/schetube
A library to fetch upcoming live streams from a YouTube channel.
https://github.com/siketyan/schetube
live-streams rust-library youtube
Last synced: 27 days ago
JSON representation
A library to fetch upcoming live streams from a YouTube channel.
- Host: GitHub
- URL: https://github.com/siketyan/schetube
- Owner: siketyan
- License: mit
- Created: 2020-09-19T16:06:18.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-06-21T22:23:27.000Z (almost 2 years ago)
- Last Synced: 2025-05-07T20:54:23.431Z (27 days ago)
- Topics: live-streams, rust-library, youtube
- Language: Rust
- Homepage: https://crates.io/crates/schetube
- Size: 57.6 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# schetube
A library to fetch upcoming live streams from a YouTube channel.
## 📦 Installation
```toml
[dependencies]
schetube = "0.1"
```## 💚 Example
```
$ cd ./example
$ cargo run [Channel ID]
```## 🔌 API
📝 List of structs and functions are available at [docs.rs](https://docs.rs/schetube/latest/schetube/) .```rust
pub async fn fetch_upcoming_videos(channel_id: &str) -> Result<(Channel, Vec), Box>;
pub fn response_to_videos(response: &ApiResponse) -> Option>;
pub fn response_to_channel(response: &ApiResponse) -> Option;impl Client {
pub fn new(client: reqwest::Client) -> Self;
pub fn create(name: &str, version: &str) -> Result>;
pub async fn build() -> Result>;
pub async fn fetch_upcoming_live_streams(&self, channel_id: &str) -> Result>;
}
```