1 unstable release

0.1.0 Jun 26, 2019

#6 in #nyaa

MIT license

22KB
404 lines

Nyaadesu Build Status

Non-official rust library to search Nyaa.si for torrents.

Rationale

As far as I know Nyaa.si does not provide any APIs so I thought it would be cool to have a way to do so in Rust and that's why this library exists.

Building and Using it

I'm planning to upload nyaadesu to crates.io in the future but for now, if you want to play with it, I suggest you the good old approach:

git clone https://github.com/grastello/nyaadesu.git
cd nyaadesu
cargo build
cargo test

You can then look at the example in the examples directory or run it directly with ./target/debug/examples/example to get a feel of how the library works. Optionally you may want to browse the documentation; to do that a cargo doc --open will suffice.

Todo

List of project's goals:

  • Search Nyaa.si for torrents.
  • Cringe Japanese-ish name.
  • Better type for torrents' sizes.
  • Better type for torrents' dates.
  • Way to extract magnet and .torrent link.

List of features that seems cool to have:

  • Get more information about a torrent (e.g. by parsing a page like this)
  • Order results by number of seeders, leechers, completed downloads, size or date.
  • Filter by category.

Dependencies

~22MB
~468K SLoC