Update main.py

This commit is contained in:
igna 2021-08-27 07:40:58 -04:00 committed by GitHub
parent 056f5e5adf
commit 07441cc45c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

59
main.py
View file

@ -1,40 +1,31 @@
import requests import requests
from colorama import init, Fore from colorama import Fore, init
# Colorama init
init() 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}')
# Input for Account Creation. data = {
username = input(f'{Fore.LIGHTMAGENTA_EX}Username: ') "birth_day": "1",
password = input(f'{Fore.LIGHTWHITE_EX}Password: ') "birth_month": "01",
email = input(f'{Fore.LIGHTCYAN_EX}Email: ') "birth_year": "2000",
headers = {
"User-Agent":
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36",
"birth_day": "02",
"birth_month": "08",
"birth_year": "2000",
"collect_personal_info": "undefined", "collect_personal_info": "undefined",
"creation_flow": "", "creation_point": "https://www.spotify.com/us/",
"creation_point": "https://www.spotify.com/us/", "displayname": username,
"displayname": username, "email": email,
"email": email, "gender": "male",
"gender": "male", "iagree": "1",
"iagree": "1", "key": "a1e486e2729f46d6bb368d6b2bcda326",
"key": "a1e486e2729f46d6bb368d6b2bcda326", "password": password,
"password": password, "password_repeat": password,
"password_repeat": password, "username": username,
"platform": "", }
"send-email": "0",
"thirdpartyemail": "0",
"fb": "0",
"username": username,
} # DONT CHANGE
resp = requests.post("https://spclient.wg.spotify.com/signup/public/v1/account" resp = requests.post('https://spclient.wg.spotify.com/signup/public/v1/account', data=data)
) # Account Creation if "\"login_token\"" in resp:
if resp.status_code == 1: 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}')
elif "That email is already" or "Valid Email" in resp:
print(f'{Fore.LIGHTRED_EX}You got a error! Please try using other email\nResponse: {resp.text}')
else: else:
print(f'{Fore.LIGHTRED_EX}You got a error! please open issue on GitHub or try with other name and/or email') 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}')