mirror of
https://github.com/uhIgnacio/SpotifyAccountCreator.git
synced 2024-08-14 23:01:06 +00:00
Update main.py
This commit is contained in:
parent
1d65a01b3a
commit
27ea19261b
1 changed files with 15 additions and 10 deletions
25
main.py
25
main.py
|
@ -1,12 +1,15 @@
|
||||||
import requests, os
|
import requests, os
|
||||||
from colorama import Fore, init
|
from colorama import Fore, init
|
||||||
def pse():
|
import random
|
||||||
os.system('pause')
|
import string
|
||||||
pse()
|
|
||||||
|
source = string.ascii_letters + string.digits
|
||||||
|
|
||||||
init()
|
init()
|
||||||
username = input(f'{Fore.LIGHTMAGENTA_EX}Username: {Fore.RESET}')
|
|
||||||
email = input(f'{Fore.LIGHTMAGENTA_EX}Email: {Fore.RESET}')
|
username = ''.join((random.choice(source) for i in range(12)))
|
||||||
password = input(f'{Fore.LIGHTMAGENTA_EX}Password: {Fore.RESET}')
|
email = (f'{username}') + "@" + "gmail.com"
|
||||||
|
password = ''.join((random.choice(source) for i in range(16)))
|
||||||
|
|
||||||
resp = requests.post("https://spclient.wg.spotify.com/signup/public/v1/account", data={
|
resp = requests.post("https://spclient.wg.spotify.com/signup/public/v1/account", data={
|
||||||
"birth_day": "1",
|
"birth_day": "1",
|
||||||
|
@ -40,13 +43,15 @@ resp = requests.post("https://spclient.wg.spotify.com/signup/public/v1/account",
|
||||||
})
|
})
|
||||||
|
|
||||||
if "login_token" in resp.text:
|
if "login_token" in resp.text:
|
||||||
print(f'{Fore.LIGHTGREEN_EX}Account Created\nLogin: {Fore.LIGHTMAGENTA_EX}{username}:{Fore.LIGHTMAGENTA_EX}{password}\nResponse: {resp.text}')
|
with open('logins.txt', 'a') as f:
|
||||||
pse()
|
f.write(f'{email}:{username}:{password}')
|
||||||
|
f.write('\n')
|
||||||
|
print(f'{Fore.LIGHTGREEN_EX}Account Created\n ')
|
||||||
|
|
||||||
elif "That email is already" or "Invalid Email" in resp.text:
|
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}')
|
print(f'{Fore.LIGHTRED_EX}You got an error! Please try using a different email\nResponse: {resp.text}')
|
||||||
pse()
|
exit()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
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 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()
|
exit()
|
||||||
|
|
Loading…
Reference in a new issue