| Crates.io | yts-movies |
| lib.rs | yts-movies |
| version | 0.2.0 |
| created_at | 2025-07-06 15:30:34.126916+00 |
| updated_at | 2025-09-15 13:51:25.350054+00 |
| description | Library to search YTS movies info and torrent links |
| homepage | https://github.com/javiorfo/yts-movies#readme |
| repository | https://github.com/javiorfo/yts-movies |
| max_upload_size | |
| id | 1740199 |
| size | 90,803 |
Library to search YTS movies info and torrent links
This crate provides an interface for searching and retrieving movie information from the YTS API, including filtering options, pagination, and torrent details. It offers both asynchronous and blocking (synchronous) interfaces, with flexible filtering and ordering options. It uses a web scraper to build the api
Add this crate to your Cargo.toml:
[dependencies]
yts-movies = "0.1.1"
[dependencies]
yts-movies = { version = "0.1.1", features = ["blocking"] }
use yts_movies::{Filters, OrderBy, Year, Yts};
#[tokio::main]
async fn main() -> yts_movies::Result {
let yts = Yts::default();
let response = yts
.search_with_filter(
"the godfather",
Filters::default()
.year(Year::Range1970to1979)
.order_by(OrderBy::Rating)
.build(),
)
.await?;
println!("{response:#?}");
// Getting the torrents of the first movie
let torrents = yts
.torrents(&response.movies[0])
.await?;
println!("{torrents:#?}");
Ok(())
}
Find all the configuration options in the full documentation.