Skip to main content

Allows you to make requests on Nyaa.si and nyaa.pantsu.cat

Project description

# NyaaPy

Unofficial Python module to search into Nyaa.si and nyaa.pantsu.cat.

Based on [Kylart's Nyaapi](https://github.com/Kylart/Nyaapi).


### Installation and ussage

Install it using pip.

pip install nyaapy


### Contributions and development

At this moment there isn't an official Nyaa.si API, so we only can make requests using the search URI.

#### Instructions to contribute

1. Clone or fork the repo.

```
$ git clone https://github.com/JuanjoSalvador/nyaapy.git
```

2. Set the virtual environment.

```
$ virtualenv nyaa
$ source nyaa/bin/activate
```

3. If you are ussing a clonned repo, please create a new branch named `patch-<username>-<version>`. Example: `patch-juanjosalvador-0.2`

4. Always use the code into `src` folder, never the package.

### Example code

from NyaaPy.nyaa import Nyaa
from NyaaPy.nyaa import NyaaPantsu

# Nyaa.si results
nyaa_query = Nyaa.search('new game')
for result in nyaa_query:
print(result['title'])

# Nyaa.pantsu.cat results
pantsu_query = NyaaPantsu.search('new game')

for result in pantsu_query:
print(result['title'])

### License

MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nyaapy-0.1.tar.gz (1.7 kB view details)

Uploaded Source

File details

Details for the file nyaapy-0.1.tar.gz.

File metadata

  • Download URL: nyaapy-0.1.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nyaapy-0.1.tar.gz
Algorithm Hash digest
SHA256 76b4f1cc10e11dddfe0a47f6cb457dc6921a9d8c07132f4e0ab5954263d86623
MD5 8d97ebacad76e64902f0b4d806e42935
BLAKE2b-256 75f733dc80876ae216312e94cf479e2a901513c82ee945d6b45812797fe3e1f0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page