SpotifyAccountCreator/main.py

57 lines
2.1 KiB
Python
Raw Normal View History

2021-08-30 16:42:41 +00:00
import requests
import os
2021-08-27 11:40:58 +00:00
from colorama import Fore, init
2021-08-30 16:42:41 +00:00
2021-08-27 05:35:17 +00:00
init()
2021-08-27 11:40:58 +00:00
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}')
2021-08-27 05:35:17 +00:00
2021-08-30 16:42:41 +00:00
resp = requests.post("https://spclient.wg.spotify.com/signup/public/v1/account", data={
"birth_day": "29",
"birth_month": "06",
"birth_year": "2000",
2021-08-27 05:35:17 +00:00
"collect_personal_info": "undefined",
2021-08-30 16:42:41 +00:00
"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"
2021-09-01 06:47:37 +00:00
})
2021-08-27 11:40:58 +00:00
if "\"login_token\"" in resp:
2021-08-31 05:37:12 +00:00
os.system("cls" if os.name == "nt" else "clear")
2021-09-01 06:47:37 +00:00
print(f'{Fore.LIGHTGREEN_EX}Account Created\nLogin: {Fore.LIGHTBLUE_EX}{username}:{Fore.LIGHTBLACK_EX}{password}\nResponse: {resp.text}')
2021-08-31 05:37:12 +00:00
os.system("pause" if os.name ==
"nt" else "read -p \"Press any key to resume ...\"")
2021-08-30 16:42:41 +00:00
elif "That email is already" in resp:
2021-08-31 05:37:12 +00:00
os.system("cls" if os.name == "nt" else "clear")
2021-09-01 06:47:37 +00:00
print(f'{Fore.LIGHTRED_EX}You got a error! Please try using other email\nResponse: {resp.text}')
2021-08-31 05:37:12 +00:00
os.system("pause" if os.name ==
"nt" else "read -p \"Press any key to resume ...\"")
2021-08-27 05:24:41 +00:00
else:
2021-08-31 05:37:12 +00:00
os.system("cls" if os.name == "nt" else "clear")
2021-09-01 06:47:37 +00:00
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}')
2021-08-31 05:37:12 +00:00
os.system("pause" if os.name ==
"nt" else "read -p \"Press any key to resume ...\"")