mirror of
https://github.com/uhIgnacio/SpotifyAccountCreator.git
synced 2024-08-14 23:01:06 +00:00
fixed shité spelling and made it work
This commit is contained in:
parent
f89ed9cc32
commit
67234a7cb4
1 changed files with 28 additions and 46 deletions
74
main.py
74
main.py
|
@ -1,56 +1,38 @@
|
||||||
import requests
|
import requests, os
|
||||||
import os
|
|
||||||
from colorama import Fore, init
|
from colorama import Fore, init
|
||||||
|
def pse():
|
||||||
|
os.system('pause')
|
||||||
|
pse()
|
||||||
init()
|
init()
|
||||||
username = input(f'{Fore.LIGHTMAGENTA_EX}Username: {Fore.RESET}')
|
username = input(f'{Fore.LIGHTMAGENTA_EX}Username: {Fore.RESET}')
|
||||||
email = input(f'{Fore.LIGHTMAGENTA_EX}Email: {Fore.RESET}')
|
email = input(f'{Fore.LIGHTMAGENTA_EX}Email: {Fore.RESET}')
|
||||||
password = input(f'{Fore.LIGHTMAGENTA_EX}Password: {Fore.RESET}')
|
password = input(f'{Fore.LIGHTMAGENTA_EX}Password: {Fore.RESET}')
|
||||||
|
|
||||||
resp = requests.post("https://spclient.wg.spotify.com/signup/public/v1/account", data={
|
data = {
|
||||||
"birth_day": "29",
|
"birth_day": "1",
|
||||||
"birth_month": "06",
|
"birth_month": "01",
|
||||||
"birth_year": "2000",
|
"birth_year": "1970",
|
||||||
"collect_personal_info": "undefined",
|
"collect_personal_info": "undefined",
|
||||||
"creation_flow": "",
|
"creation_point": "https://www.spotify.com/us/",
|
||||||
"creation_point": "https://www.spotify.com/cl/",
|
"displayname": username,
|
||||||
"displayname": username,
|
"email": email,
|
||||||
"username": username,
|
"gender": "male",
|
||||||
"gender": "neutral",
|
"iagree": "1",
|
||||||
"iagree": "1",
|
"key": "a1e486e2729f46d6bb368d6b2bcda326",
|
||||||
"key": "a1e486e2729f46d6bb368d6b2bcda326",
|
"password": password,
|
||||||
"platform": "www",
|
"password_repeat": password,
|
||||||
"referrer": "",
|
"username": username,
|
||||||
"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"
|
|
||||||
})
|
|
||||||
|
|
||||||
if "\"login_token\"" in resp:
|
resp = requests.post('https://spclient.wg.spotify.com/signup/public/v1/account', data=data)
|
||||||
os.system("cls" if os.name == "nt" else "clear")
|
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}')
|
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 ==
|
pse()
|
||||||
"nt" else "read -p \"Press any key to resume ...\"")
|
|
||||||
elif "That email is already" in resp:
|
elif "That email is already" or "Invalid Email" in resp.text:
|
||||||
os.system("cls" if os.name == "nt" else "clear")
|
print(f'{Fore.LIGHTRED_EX}You got an error! Please try using a different email\nResponse: {resp.text}')
|
||||||
print(f'{Fore.LIGHTRED_EX}You got a error! Please try using other email\nResponse: {resp.text}')
|
pse()
|
||||||
os.system("pause" if os.name ==
|
|
||||||
"nt" else "read -p \"Press any key to resume ...\"")
|
|
||||||
else:
|
else:
|
||||||
os.system("cls" if os.name == "nt" else "clear")
|
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}')
|
||||||
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}')
|
pse()
|
||||||
os.system("pause" if os.name ==
|
|
||||||
"nt" else "read -p \"Press any key to resume ...\"")
|
|
||||||
|
|
Loading…
Reference in a new issue