0.3.1 - Fixed #1

This commit is contained in:
JuanjoSalvador
2017-08-12 22:49:27 +02:00
parent a17186393d
commit 9cb2403b0c
4 changed files with 45 additions and 14 deletions

View File

@@ -1,8 +1,9 @@
from NyaaPy.nyaa import Nyaa
from NyaaPy.nyaa import NyaaPantsu
import json
# Nyaa.si results
nyaa_query = Nyaa.search('illo que pasa')
nyaa_query = Nyaa.search('koe no katachi 1080')
if len(nyaa_query) > 0:
for result in nyaa_query:
@@ -11,7 +12,7 @@ else:
print('Nothing here!')
# Nyaa.pantsu.cat results
pantsu_query = NyaaPantsu.search('new game')
pantsu_query = NyaaPantsu.search('new game!!')
if len(pantsu_query) > 0:
for result in pantsu_query:
print(result['title'])