Comments (1)
I was postponing writing the docs for a long time, because I didn't know this project has actual users. So I'm going to write them along this week, I promise. Also there is a lot of new and undocumented features, and lot of outdated/deprecated ones.
The filters are basically three:
0 - No filter (default)
1 - No remakes
2 - Trusted only
So if you want to search for Kimi No Na Wa
for example at Nyaa.si but you only want trusted results, you can use
from NyaaPy.nyaa import Nyaa
# Initialize Nyaa object
nyaa = Nyaa()
# Search for `Kimi No Na Wa` at Nyaa
nyaa.search("kimi no na wa", filters=2)
Which is an equivalent to make a request to https://nyaa.si/?f=2&c=0_0&q=Kimi+No+Na+Wa
. Notice f=2
into the URL.
from nyaapy.
Related Issues (20)
- Add support for sukebei (Nyaa.si and NyaaPantsu) HOT 3
- Improve the torrent objects HOT 1
- Remakes, trusted and those things
- Add NyaaPantsu news HOT 1
- Request module not found
- Search torrents by user
- PEP8 optimization HOT 1
- Error on code ```Utils.py``` HOT 2
- Write some tests HOT 1
- Refactor "utils" module to not use a class HOT 1
- Replace BeautifulSoup by lxml HOT 10
- [Nyaa.si][last_uploaded_torrents] How about using RSS? HOT 6
- Update Pantsu data HOT 2
- No matching distribution found for nyaapy==0.6.2 HOT 7
- Confusion HOT 4
- A way to convert Torrent object into dictionary HOT 1
- Python 3.10 support
- Exception when the response contains emojis - HOT 2
- Make the whole code async HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nyaapy.