diff --git a/src/checkers/gitlab.py b/src/checkers/gitlab.py index efbd14f..4371012 100644 --- a/src/checkers/gitlab.py +++ b/src/checkers/gitlab.py @@ -20,4 +20,4 @@ def _(self, username:str) -> str|None: if r.status_code == 429: time.sleep(self.RATELIMIT_TIMEOUT) - return username if r.json()['exists'] == False else None \ No newline at end of file + return username if r.json()["exists"] == False else None \ No newline at end of file diff --git a/src/checkers/instagram.py b/src/checkers/instagram.py index a7e1f78..ae8e77f 100644 --- a/src/checkers/instagram.py +++ b/src/checkers/instagram.py @@ -13,8 +13,8 @@ class Checker(BaseChecker): @BaseChecker.check.register def _(self, username:str) -> str|None: - headers = {'X-CSRFToken': 'en'} - payload = {'email': '', 'username': username, 'first_name': '', 'opt_into_one_tap': False} + headers = {"X-CSRFToken": "en"} + payload = {"email": "", "username": username, "first_name": "", "opt_into_one_tap": False} r = Response(429) while r.status_code == 429: @@ -23,4 +23,4 @@ def _(self, username:str) -> str|None: if r.status_code == 429: time.sleep(self.RATELIMIT_TIMEOUT) - return username if not '"username": [{"message": ' in r.text else None \ No newline at end of file + return username if not "\"username\": [{\"message\": " in r.text else None \ No newline at end of file diff --git a/src/checkers/kahoot.py b/src/checkers/kahoot.py index beb1139..8cdd1a4 100644 --- a/src/checkers/kahoot.py +++ b/src/checkers/kahoot.py @@ -13,7 +13,7 @@ class Checker(BaseChecker): @BaseChecker.check.register def _(self, username:str) -> str|None: - headers={'x-kahoot-user-identifier': username} + headers={"x-kahoot-user-identifier": username} r = Response(429) while r.status_code == 429: @@ -22,4 +22,4 @@ def _(self, username:str) -> str|None: if r.status_code == 429: time.sleep(self.RATELIMIT_TIMEOUT) - return username if r.json().get('isUsernameAvailable') else None \ No newline at end of file + return username if r.json().get("isUsernameAvailable") else None \ No newline at end of file diff --git a/src/checkers/speedrun-com.py b/src/checkers/speedrun-com.py index c9779bc..455f21a 100644 --- a/src/checkers/speedrun-com.py +++ b/src/checkers/speedrun-com.py @@ -13,7 +13,7 @@ class Checker(BaseChecker): @BaseChecker.check.register def _(self, username:str) -> str|None: - payload = {'areaId': '', 'email': 'email@example.com', 'name': username, 'password': 'realpassword123'} + payload = {"areaId": "", "email": "email@example.com", "name": username, "password": "realpassword123"} r = Response(429) while r.status_code == 429: diff --git a/src/checkers/twitch.py b/src/checkers/twitch.py index 0985ec7..55f0b84 100644 --- a/src/checkers/twitch.py +++ b/src/checkers/twitch.py @@ -13,7 +13,7 @@ class Checker(BaseChecker): @BaseChecker.check.register def _(self, username:str) -> str|None: - headers={'client-id': 'kimne78kx3ncx6brgo4mv6wki5h1ko'} + headers={"client-id": "kimne78kx3ncx6brgo4mv6wki5h1ko"} payload = [{"operationName": "UsernameValidator_User", "variables": {"username": username}, "extensions": {"persistedQuery": {"version": 1, "sha256Hash": "fd1085cf8350e309b725cf8ca91cd90cac03909a3edeeedbd0872ac912f3d660"}}}] r = Response(429) diff --git a/update_list.py b/update_list.py index 7d1a16f..5c2ca8f 100644 --- a/update_list.py +++ b/update_list.py @@ -4,7 +4,7 @@ import glob files = sorted(glob.glob("./src/checkers/*.py", recursive=True)) -with open('README.md', 'r', encoding='utf-8') as f: +with open("README.md", "r", encoding="utf-8") as f: f_text = f.read() md = f_text.split("")[0] md += f"[{len(files)} total]\n" @@ -16,8 +16,8 @@ website = file.split("/")[-1].removesuffix(".py").replace("-", ".").capitalize() md += f"\n- [{website}]({link})" - md += '\n\n' + md += "\n\n" md += f_text.split("")[1] -with open('README.md', 'w', encoding='utf-8') as f: +with open("README.md", "w", encoding="utf-8") as f: f.write(md) \ No newline at end of file