Minor fixes
This commit is contained in:
18
README.md
18
README.md
@@ -41,15 +41,21 @@ At this moment there isn't an official Nyaa.si API, so we only can make requests
|
||||
from NyaaPy.nyaa import NyaaPantsu
|
||||
|
||||
# Nyaa.si results
|
||||
nyaa_query = Nyaa.search('new game')
|
||||
for result in nyaa_query:
|
||||
print(result['title'])
|
||||
nyaa_query = Nyaa.search('illo que pasa')
|
||||
|
||||
if len(nyaa_query) > 0:
|
||||
for result in nyaa_query:
|
||||
print(result['title'])
|
||||
else:
|
||||
print('Nothing here!')
|
||||
|
||||
# Nyaa.pantsu.cat results
|
||||
pantsu_query = NyaaPantsu.search('new game')
|
||||
|
||||
for result in pantsu_query:
|
||||
print(result['title'])
|
||||
if len(pantsu_query) > 0:
|
||||
for result in pantsu_query:
|
||||
print(result['title'])
|
||||
else:
|
||||
print('Nothing here!')
|
||||
|
||||
### License
|
||||
|
||||
|
||||
Reference in New Issue
Block a user