Minor fixes

This commit is contained in:
JuanjoSalvador
2017-08-12 19:40:34 +02:00
parent 3805a2de6c
commit a17186393d
5 changed files with 39 additions and 17 deletions

View File

@@ -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