101 lines
1.9 KiB
Markdown
101 lines
1.9 KiB
Markdown

|
|
|
|

|
|

|
|

|
|
[](https://raw.githubusercontent.com/JuanjoSalvador/NyaaPy/master/LICENSE.txt)
|
|

|
|
|
|
|
|
Unofficial Python module for Nyaa.si (WebScraping) and Nyaa.pantsu.cat (API wrapper)
|
|
|
|
Supports Python 3+
|
|
|
|
* [Installation](#installation)
|
|
* [Docs](https://github.com/JuanjoSalvador/NyaaPy/wiki)
|
|
* [License](#license)
|
|
|
|
## Installation
|
|
|
|
Install it using pip.
|
|
|
|
pip install nyaapy
|
|
|
|
|
|
## Categories and subcategories
|
|
|
|
List of available categories and subcategories:
|
|
|
|
0. All categories and subcategories
|
|
|
|
1. Anime.
|
|
|
|
1.1 - Anime Music Video
|
|
|
|
1.2 - English-translated
|
|
|
|
1.3 - Non-English-translated
|
|
|
|
1.4 - Raw
|
|
|
|
2. Audio.
|
|
|
|
2.1 - Lossless
|
|
|
|
2.2 - Lossy
|
|
|
|
3. Literature.
|
|
|
|
3.1 - English-translated
|
|
|
|
3.2 - Non-English-translated
|
|
|
|
3.3 - Raw
|
|
|
|
4. Live Action.
|
|
|
|
4.1 - English-translated
|
|
|
|
4.2 - Idol/Promotional Video
|
|
|
|
4.3 - Non-English-translated
|
|
|
|
4.4 - Raw
|
|
|
|
5. Pictures.
|
|
|
|
5.1 - Graphics
|
|
|
|
5.2 - Photos
|
|
|
|
6. Software.
|
|
|
|
6.1 - Applications
|
|
|
|
6.2 - Games
|
|
|
|
### 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`
|
|
|
|
## License
|
|
|
|
MIT license.
|