From 67234a7cb4b84884cebcdbbe89888d0ce364b72f Mon Sep 17 00:00:00 2001 From: xeny <44981148+1x6@users.noreply.github.com> Date: Wed, 1 Sep 2021 17:50:16 +0100 Subject: [PATCH 1/2] =?UTF-8?q?fixed=20shit=C3=A9=20spelling=20and=20made?= =?UTF-8?q?=20it=20work?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 74 ++++++++++++++++++++++----------------------------------- 1 file changed, 28 insertions(+), 46 deletions(-) diff --git a/main.py b/main.py index 5e052bb..ce75606 100644 --- a/main.py +++ b/main.py @@ -1,56 +1,38 @@ -import requests -import os +import requests, os from colorama import Fore, init - - +def pse(): + os.system('pause') +pse() init() username = input(f'{Fore.LIGHTMAGENTA_EX}Username: {Fore.RESET}') email = input(f'{Fore.LIGHTMAGENTA_EX}Email: {Fore.RESET}') password = input(f'{Fore.LIGHTMAGENTA_EX}Password: {Fore.RESET}') -resp = requests.post("https://spclient.wg.spotify.com/signup/public/v1/account", data={ - "birth_day": "29", - "birth_month": "06", - "birth_year": "2000", +data = { + "birth_day": "1", + "birth_month": "01", + "birth_year": "1970", "collect_personal_info": "undefined", - "creation_flow": "", - "creation_point": "https://www.spotify.com/cl/", - "displayname": username, - "username": username, - "gender": "neutral", - "iagree": "1", - "key": "a1e486e2729f46d6bb368d6b2bcda326", - "platform": "www", - "referrer": "", - "send-email": "0", - "thirdpartyemail": "0", - "email": email, - "password": password, - "password_repeat": password -}, headers={ - "accept": "*/*", - "accept-language": "es-419,es;q=0.9", - "content-type": "application/x-www-form-urlencoded", - "sec-fetch-dest": "empty", - "sec-fetch-mode": "cors", - "sec-fetch-site": "same-site", - "sec-gpc": "1", - "referer": "https://www.spotify.com/", - "referrer-policy": "strict-origin-when-cross-origin" -}) + "creation_point": "https://www.spotify.com/us/", + "displayname": username, + "email": email, + "gender": "male", + "iagree": "1", + "key": "a1e486e2729f46d6bb368d6b2bcda326", + "password": password, + "password_repeat": password, + "username": username, +} -if "\"login_token\"" in resp: - os.system("cls" if os.name == "nt" else "clear") +resp = requests.post('https://spclient.wg.spotify.com/signup/public/v1/account', data=data) +if "login_token" in resp.text: print(f'{Fore.LIGHTGREEN_EX}Account Created\nLogin: {Fore.LIGHTBLUE_EX}{username}:{Fore.LIGHTBLACK_EX}{password}\nResponse: {resp.text}') - os.system("pause" if os.name == - "nt" else "read -p \"Press any key to resume ...\"") -elif "That email is already" in resp: - os.system("cls" if os.name == "nt" else "clear") - print(f'{Fore.LIGHTRED_EX}You got a error! Please try using other email\nResponse: {resp.text}') - os.system("pause" if os.name == - "nt" else "read -p \"Press any key to resume ...\"") + pse() + +elif "That email is already" or "Invalid Email" in resp.text: + print(f'{Fore.LIGHTRED_EX}You got an error! Please try using a different email\nResponse: {resp.text}') + pse() + else: - os.system("cls" if os.name == "nt" else "clear") - print(f'{Fore.LIGHTRED_EX}You got a error! please open issue on GitHub or try with other name and/or disable proxy/VPN\nResponse: {resp.text}') - os.system("pause" if os.name == - "nt" else "read -p \"Press any key to resume ...\"") + print(f'{Fore.LIGHTRED_EX}You got an error! Try with a different username and/or disable your proxy/VPN. If that doesn\'t work, please open issue on GitHub \nResponse: {resp.text} \n {resp.status_code}') + pse() From 38532c8afd9694a810657919188ce746de07861b Mon Sep 17 00:00:00 2001 From: xeny <44981148+1x6@users.noreply.github.com> Date: Wed, 1 Sep 2021 17:58:32 +0100 Subject: [PATCH 2/2] igna ur so fussy --- main.py | 43 +++++++++++++++++++++++++++++-------------- 1 file changed, 29 insertions(+), 14 deletions(-) diff --git a/main.py b/main.py index ce75606..db45f9b 100644 --- a/main.py +++ b/main.py @@ -8,21 +8,36 @@ username = input(f'{Fore.LIGHTMAGENTA_EX}Username: {Fore.RESET}') email = input(f'{Fore.LIGHTMAGENTA_EX}Email: {Fore.RESET}') password = input(f'{Fore.LIGHTMAGENTA_EX}Password: {Fore.RESET}') -data = { - "birth_day": "1", - "birth_month": "01", - "birth_year": "1970", +resp = requests.post("https://spclient.wg.spotify.com/signup/public/v1/account", data={ + "birth_day": "1", + "birth_month": "01", + "birth_year": "1970", "collect_personal_info": "undefined", - "creation_point": "https://www.spotify.com/us/", - "displayname": username, - "email": email, - "gender": "male", - "iagree": "1", - "key": "a1e486e2729f46d6bb368d6b2bcda326", - "password": password, - "password_repeat": password, - "username": username, -} + "creation_flow": "", + "creation_point": "https://www.spotify.com/uk/", + "displayname": username, + "username": username, + "gender": "neutral", + "iagree": "1", + "key": "a1e486e2729f46d6bb368d6b2bcda326", + "platform": "www", + "referrer": "https://www.spotify.com/uk/", + "send-email": "0", + "thirdpartyemail": "0", + "email": email, + "password": password, + "password_repeat": password +}, headers={ + "accept": "*/*", + "accept-language": "es-419,es;q=0.9", + "content-type": "application/x-www-form-urlencoded", + "sec-fetch-dest": "empty", + "sec-fetch-mode": "cors", + "sec-fetch-site": "same-site", + "sec-gpc": "1", + "referer": "https://www.spotify.com/", + "referrer-policy": "strict-origin-when-cross-origin" +}) resp = requests.post('https://spclient.wg.spotify.com/signup/public/v1/account', data=data) if "login_token" in resp.text: