From f11263e0336535a206a6cf961f5f91f7c671363b Mon Sep 17 00:00:00 2001 From: nmsderp <130254323+nmsderp@users.noreply.github.com> Date: Tue, 23 Jan 2024 19:08:08 -0500 Subject: [PATCH] custom api --- snailpy/snailpy.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/snailpy/snailpy.py b/snailpy/snailpy.py index f003661..fc9a623 100644 --- a/snailpy/snailpy.py +++ b/snailpy/snailpy.py @@ -3,6 +3,11 @@ # This will be changed when we get the new server api_url = 'https://snailshare-backend.glitch.me' +def customAPI(url): + global api_url + api_url = url + print(f'You are now using: {api_url}') + def get_follower_count(username): url = f'{api_url}/api/users/getFollowerCount?username={username}'