{"id":18861451,"url":"https://github.com/alez-dev/nyaa-rsearch","last_synced_at":"2026-02-09T14:30:19.853Z","repository":{"id":187060213,"uuid":"676220665","full_name":"ALEZ-DEV/Nyaa-rsearch","owner":"ALEZ-DEV","description":"A rust library to search torrent on nyaa.si","archived":false,"fork":false,"pushed_at":"2024-02-07T19:54:27.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-30T20:42:11.681Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ALEZ-DEV.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-08T17:46:05.000Z","updated_at":"2024-11-14T09:00:06.000Z","dependencies_parsed_at":"2024-02-07T20:44:06.137Z","dependency_job_id":"b5fe153e-c66b-42a0-98f3-2b9ca90ff9e8","html_url":"https://github.com/ALEZ-DEV/Nyaa-rsearch","commit_stats":null,"previous_names":["alez-dev/nyaa-rsearch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALEZ-DEV%2FNyaa-rsearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALEZ-DEV%2FNyaa-rsearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALEZ-DEV%2FNyaa-rsearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ALEZ-DEV%2FNyaa-rsearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ALEZ-DEV","download_url":"https://codeload.github.com/ALEZ-DEV/Nyaa-rsearch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239801492,"owners_count":19699353,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T04:29:37.442Z","updated_at":"2026-02-09T14:30:19.786Z","avatar_url":"https://github.com/ALEZ-DEV.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nyaa-rsearch\n\n***\n\nA rust library for search Torrent on nyaa.si\n\n## How to use it\n\n***\n\n### Simple research\n```rust\nuse std::error::Error; \nuse nyaa_rsearch::{blocking ,models::categories, search}; // import required function\n\npub fn main() -\u003e Result\u003c(), Box\u003cdyn Error\u003e\u003e {\n    //create the SearchInput with the search information\n    let input = SearchInput::new(\n        \"Houseki No Kuni\".to_string(),\n        1,\n        categories::Categories::Anime,\n    )?;\n    //research\n    let search_result = blocking::search(input).unwrap();\n    //Display the result of the research\n    println!(\"{}\", search_result.info());\n\n    Ok(())\n}\n```\n### Result\n```\nsearch -\u003e Houseki No Kuni\ncategory -\u003e Anime\npage -\u003e 1\nmax page -\u003e 3\n------first torrent------\nname -\u003e [Cleo] Houseki no Kuni | Land of the Lustrous [Dual Audio 10bit BD1080p][HEVC-x265]\ncategory -\u003e AnimeEnglishTranslated\ntorrent download link -\u003e https://nyaa.si/download/1546687.torrent\nmagnet link -\u003e magnet:?xt=urn:btih:cd2ea8ede11332d2a1a6a4bc6058fc73cb3ffe08\u0026dn=%5BCleo%5D%20Houseki%20no%20Kuni%20%7C%20Land%20of%20the%20Lustrous%20%5BDual%20Audio%2010bit%20BD1080p%5D%5BHEVC-x265%5D\u0026tr=http%3A%2F%2Fnyaa.tracker.wf%3A7777%2Fannounce\u0026tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce\u0026tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce\u0026tr=udp%3A%2F%2Fexodus.desync.com%3A6969%2Fannounce\u0026tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce\nsize -\u003e 4.5 GiB\ndate (timestamp) -\u003e 1656314786\nnbrs of seeders -\u003e 79\nnbrs of leechers -\u003e 3\nnbrs of approved -\u003e 2807\n\n-------------------------\n75 torrent found in total\n```\n### Async version\n\n\u003cdetails\u003e\n\u003csummary\u003eClick to expand\u003c/summary\u003e\n\n```rust\nuse nyaa_rsearch::{r#async as func, models::categories, SearchInput};\nuse std::error::Error; // import required function\nuse tokio::macros;\n\n\n#[tokio::main]\npub async fn main() -\u003e Result\u003c(), Box\u003cdyn Error\u003e\u003e {\n    //create the SearchInput with the search information\n    let input = SearchInput::new(\n        \"Houseki No Kuni\".to_string(),\n        1,\n        categories::Categories::Anime,\n    )?;\n    //research\n    let mut search_result = func::search(input).await?;\n    //Display the result of the research\n    println!(\"{}\", search_result.info());\n\n    Ok(())\n}\n```\n\n\u003c/details\u003e\n\n***\n\n### Change page\n```rust\nuse std::error::Error; \nuse nyaa_rsearch::{blocking, models::categories, search}; // import required function\n\npub fn main() -\u003e Result\u003c(), Box\u003cdyn Error\u003e\u003e {\n    //create the SearchInput with the search information\n    let input = SearchInput::new(\n        \"Houseki No Kuni\".to_string(),\n        1,\n        categories::Categories::Anime,\n    )?;\n    //research\n    let mut search_result = blocking::search(input).unwrap();\n    search_result.blocking_next_page()?; // go to next page\n    // search_result.previous_page()? // go to previous page\n    println!(\"{}\", search_result.info()); //Display the result of the research\n\n    Ok(())\n}\n\n```\n### Result\n```\nsearch -\u003e Houseki No Kuni\ncategory -\u003e Anime\npage -\u003e 2\nmax page -\u003e 3\n------first torrent------\nname -\u003e [Nekomoe kissaten] Houseki no Kuni - 11 [WebRip 1920x1080 HEVC-yuv420p10 EAC3]\ncategory -\u003e AnimeRaw\ntorrent download link -\u003e https://nyaa.si/download/989254.torrent\nmagnet link -\u003e magnet:?xt=urn:btih:49993ee15382d31a1edbb98d6257ea20144759cf\u0026dn=%5BNekomoe%20kissaten%5D%20Houseki%20no%20Kuni%20-%2011%20%5BWebRip%201920x1080%20HEVC-yuv420p10%20EAC3%5D\u0026tr=http%3A%2F%2Fnyaa.tracker.wf%3A7777%2Fannounce\u0026tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce\u0026tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce\u0026tr=udp%3A%2F%2Fexodus.desync.com%3A6969%2Fannounce\u0026tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce\nsize -\u003e 521.1 MiB\ndate (timestamp) -\u003e 1513736489\nnbrs of seeders -\u003e 0\nnbrs of leechers -\u003e 0\nnbrs of approved -\u003e 220\n\n-------------------------\n75 torrent found in total\n```\n\n***\n\n## Installation\n\nTo install this library simply do \n```\ncargo add nyaa-rsearch\n```\n\n## Contribute\n\nAny improvement or issue is welcome for help this library to improve on it's stability","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falez-dev%2Fnyaa-rsearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falez-dev%2Fnyaa-rsearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falez-dev%2Fnyaa-rsearch/lists"}