diff --git a/NyaaPy/pantsu.py b/NyaaPy/pantsu.py index d982f86..f9bef3a 100644 --- a/NyaaPy/pantsu.py +++ b/NyaaPy/pantsu.py @@ -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):