torrent_search

Crates.iotorrent_search
lib.rstorrent_search
version0.3.3
sourcesrc
created_at2021-02-19 16:24:57.604685
updated_at2021-05-05 14:34:44.719991
descriptionAn unofficial torrent searching library in Rust
homepagehttps://github.com/billyb2/torrent-search-rs
repositoryhttps://github.com/billyb2/torrent-search-rs
max_upload_size
id357649
size15,533
William Batista (billyb2)

documentation

README

Torrent Search

Build Status

Usage:

To search for a torrent, simply use the search_l337x function

use torrent_search::{search_l337x, TorrentSearchResult, TorrentSearchError};

#[tokio::main]
async fn main() {
   let debian_search_results = search_l337x("Debian ISO".to_string()).await.unwrap();

   for result in debian_search_results {
       println!("Name of torrent: {}\nMagnet: {}\nSeeders: {}\nLeeches: {}", result.name, result.magnet.unwrap(), result.seeders.unwrap(), result.leeches.unwrap());

   }
}

This will return Result<Vec<TorrentSearchResult>, TorrentSearchError>, which when unwrapped gives a Vector of TorrentSearchResults.

You can view more information about the data types of the structs here

Commit count: 30

cargo fmt