https://github.com/billyb2/torrent-search-rs
Torrent searching Rust library
https://github.com/billyb2/torrent-search-rs
1337x 1337x-api 1337x-to magnet torrent torrent-search
Last synced: about 2 months ago
JSON representation
Torrent searching Rust library
- Host: GitHub
- URL: https://github.com/billyb2/torrent-search-rs
- Owner: billyb2
- License: mit
- Created: 2021-02-18T21:12:23.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-20T22:23:02.000Z (about 4 years ago)
- Last Synced: 2025-04-04T13:48:48.896Z (about 2 months ago)
- Topics: 1337x, 1337x-api, 1337x-to, magnet, torrent, torrent-search
- Language: Rust
- Homepage: https://docs.rs/torrent_search
- Size: 30.3 KB
- Stars: 15
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Torrent Search
[](https://travis-ci.com/billyb2/torrent-search-rs)### Usage:
To search for a torrent, simply use the `search_l337x` function```rust
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, TorrentSearchError>`, which when unwrapped
gives a Vector of TorrentSearchResults.You can view more information about the data types of the structs [here](https://docs.rs/torrent_search/)