Merge pull request #48 from jennisu/issue-33

fixed issue 33
This commit is contained in:
Juanjo Salvador
2019-10-04 20:58:57 +02:00
committed by GitHub

View File

@@ -5,6 +5,14 @@ class Pantsu:
def __init__(self):
self.BASE_URL = "https://nyaa.pantsu.cat/api"
def last_uploads(self, number_of_results):
r = requests.get(self.URI)
soup = BeautifulSoup(r.text, 'html.parser')
rows = soup.select('table tr')
return utils.parse_nyaa(rows, limit=number_of_results + 1)
# Torrents - GET
def search(self, keyword, **kwargs):