feat(pantsu): remove Pantsu since is not available anymore
This commit is contained in:
@@ -47,43 +47,3 @@ class SukebeiNyaa:
|
||||
limit=number_of_results + 1,
|
||||
site=self.SITE
|
||||
)
|
||||
|
||||
|
||||
class SukebeiPantsu:
|
||||
BASE_URL = "https://sukebei.pantsu.cat/api"
|
||||
|
||||
# Torrents - GET
|
||||
def search(self, keyword, **kwargs):
|
||||
request = requests.get("{}/search{}".format(
|
||||
SukebeiPantsu.BASE_URL, utils.query_builder(keyword, kwargs)))
|
||||
|
||||
return request.json()
|
||||
|
||||
def view(self, item_id):
|
||||
request = requests.get("{}/view/{}".format(
|
||||
SukebeiPantsu.BASE_URL, item_id))
|
||||
|
||||
return request.json()
|
||||
|
||||
# Torrents - POST
|
||||
|
||||
def upload(self):
|
||||
return "Work in progress!"
|
||||
|
||||
def update(self):
|
||||
return "Work in progress!"
|
||||
|
||||
# Users
|
||||
|
||||
def login(self, username, password):
|
||||
login = requests.post("{}/login/".format(
|
||||
SukebeiPantsu.BASE_URL), data={'username': username,
|
||||
'password': password})
|
||||
|
||||
return login.json()
|
||||
|
||||
def profile(self, user_id):
|
||||
profile = requests.post("{}/profile/".format(
|
||||
SukebeiPantsu.BASE_URL), data={'id': user_id})
|
||||
|
||||
return profile.json()
|
||||
|
||||
Reference in New Issue
Block a user