20 lines
438 B
Python
20 lines
438 B
Python
from NyaaPy.nyaa import Nyaa
|
|
from NyaaPy.nyaa import NyaaPantsu
|
|
|
|
# Nyaa.si results
|
|
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')
|
|
if len(pantsu_query) > 0:
|
|
for result in pantsu_query:
|
|
print(result['title'])
|
|
else:
|
|
print('Nothing here!')
|