You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
fromNyaaPy.nyaaimportNyaa# Initialize Nyaa objectnyaa=Nyaa()
# Search for `Kimi No Na Wa` at Nyaanyaa.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.
I would really appreciate it if I could see the filter list to know what I can filter. Right now it is just an empty doc.
Cheers
The text was updated successfully, but these errors were encountered: