fcb1b6857e470b78f6d6ab1b69b99a769774b24f
NyaaPy
Unofficial Python module to search into Nyaa.si and nyaa.pantsu.cat.
Based on Kylart's 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
-
Clone or fork the repo.
$ git clone https://github.com/JuanjoSalvador/nyaapy.github -
Set the virtual environment.
$ virtualenv nyaa $ source nyaa/bin/activate -
If you are ussing a clonned repo, please create a new branch named
patch-<username>-<version>. Example:patch-juanjosalvador-0.2 -
Always use the code into
srcfolder, 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.
Description