Skip to content

Commit 512f000

Browse files
authored
Update spotify-reg.py
1 parent e167d4f commit 512f000

File tree

1 file changed

+113
-122
lines changed

1 file changed

+113
-122
lines changed

spotify-reg.py

Lines changed: 113 additions & 122 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from threading import Thread, active_count
1111

1212

13-
script_version = "1.1"
13+
script_version = "1.0.0"
1414
script_title = "Spotify Account Creator By ALIILAPRO"
1515
script_info = f'''
1616
..: {script_title} :..
@@ -28,127 +28,118 @@
2828

2929
class Main:
3030

31-
def clear(self, text):
32-
os.system('cls' if os.name == 'nt' else 'clear')
33-
print(text)
34-
35-
def settitle(self, title_name:str):
36-
os.system("title {0}".format(title_name))
37-
38-
def readfile(self, filename, method):
39-
with open(filename,method) as f:
40-
content = [line.strip('\n') for line in f]
41-
return content
42-
43-
def countfile(self, filename, method):
44-
file = open(filename,method)
45-
Counter = 0
46-
Content = file.read()
47-
CoList = Content.split("\n")
48-
for i in CoList:
49-
if i:
50-
Counter += 1
51-
52-
return Counter
53-
54-
def getproxy(self):
55-
r = requests.get('https://xcoder.fun/p.php?r=y')
56-
57-
with open('proxy.txt','w') as fd:
58-
fd.write(r.text.replace('\n',''))
59-
60-
def getrandomproxy(self):
61-
proxies_file = self.readfile('proxy.txt','r')
62-
proxies = {
63-
"http":"http://{0}".format(random.choice(proxies_file)),
64-
"https":"https://{0}".format(random.choice(proxies_file))
65-
}
66-
67-
return proxies
68-
69-
def __init__(self):
70-
self.settitle(script_title)
71-
self.clear(script_info)
72-
self.getproxy()
73-
if os.path.exists('proxy.txt'):
74-
self.count = self.countfile('proxy.txt','r')
75-
if self.count > 0:
76-
self.email = input('[#] Enter Email: ')
77-
self.password = input('[#] Enter Password: ')
78-
self.birth_year = int(input('[#] Enter the birth year (only year): '))
79-
self.birth_month = int(input('[#] Enter the birth month (1 - 12): '))
80-
self.birth_day = int(input('[#] Enter the birth day (1 - 28): '))
81-
self.gender = input('[#] Enter the gender (male or female): ')
82-
self.threads = self.count
83-
else:
84-
print("[ERROR] There is a problem with the proxy file, please check the file.")
85-
time.sleep(5)
86-
sys.exit()
87-
else:
88-
print("[ERROR] Proxy file not found.")
89-
time.sleep(5)
90-
sys.exit()
91-
92-
def gencredentailsmethod(self):
93-
credentails = {}
94-
credentails['gender'] = self.gender
95-
credentails['birth_year'] = self.birth_year
96-
credentails['birth_month'] = self.birth_month
97-
credentails['birth_day'] = self.birth_day
98-
credentails['password'] = self.password
99-
username = string.ascii_letters + string.digits
100-
username = ''.join(random.choice(username) for i in range(random.randint(7,11)))
101-
credentails['username'] = username
102-
credentails['email'] = self.email
103-
104-
return credentails
105-
106-
def creator(self):
107-
try:
108-
109-
headers = {
110-
'User-agent': 'S4A/2.0.15 (com.spotify.s4a; build:201500080; iOS 13.4.0) Alamofire/4.9.0',
111-
'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8',
112-
'Accept': 'application/json, text/plain;q=0.2, */*;q=0.1',
113-
'App-Platform': 'IOS',
114-
'Spotify-App': 'S4A',
115-
'Accept-Language': 'en-TZ;q=1.0',
116-
'Accept-Encoding': 'gzip;q=1.0, compress;q=0.5',
117-
'Spotify-App-Version': '2.0.15'
118-
}
119-
120-
121-
url = 'https://spclient.wg.spotify.com/signup/public/v1/account'
122-
credentails = self.gencredentailsmethod()
123-
data = 'creation_point=lite_7e7cf598605d47caba394c628e2735a2&password_repeat={0}&platform=Android-ARM&iagree=true&password={1}&gender={2}&key=a2d4b979dc624757b4fb47de483f3505&birth_day={3}&birth_month={4}&email={5}&birth_year={6}'.format(credentails['password'],credentails['password'],credentails['gender'],credentails['birth_day'],credentails['birth_month'],credentails['email'],credentails['birth_year'])
124-
req = requests.post(url=url, data=data, headers=headers, proxies=self.getrandomproxy(), timeout=5)
125-
json_data = json.loads(req.text)
126-
127-
128-
if 'status' in json_data:
129-
if json_data['status'] == 1:
130-
username = json_data['username']
131-
if username != '':
132-
self.clear(script_info)
133-
print('[>] ACCOUNT CREATED SUCCESSFULLY\n[-] Email:{0}\n[-] Password:{1}\n[-] Username:{2}\n[-] Gender:{3}\n[-] Birth year:{4}\n[-] Birth month:{5}\n[-] Birth day:{6}\n'.format(credentails['email'],credentails['password'],credentails['username'],credentails['gender'],credentails['birth_year'],credentails['birth_month'],credentails['birth_day']))
134-
with open('reg.txt','a') as f:
135-
f.write('[INFO ACCOUNT]\nEmail:{0}\nPassword:{1}\nUsername:{2}\nGender:{3}\nBirth year:{4}\nBirth month:{5}\nBirth day:{6}\n___________________\n\n'.format(credentails['email'],credentails['password'],credentails['username'],credentails['gender'],credentails['birth_year'],credentails['birth_month'],credentails['birth_day']))
136-
time.sleep(self.threads)
137-
else:
138-
self.creator()
139-
else:
140-
self.creator()
141-
else:
142-
self.creator()
143-
except:
144-
self.creator()
145-
146-
def start(self):
147-
while True:
148-
if active_count() <= self.threads:
149-
Thread(target=self.creator).start()
31+
def clear(self, text):
32+
if os.name == 'posix':
33+
os.system('clear')
34+
print(text)
35+
elif os.name in ('ce', 'nt', 'dos'):
36+
os.system('cls')
37+
print(text)
38+
else:
39+
print("\n") * 120
40+
41+
def settitle(self, title_name:str):
42+
os.system("title {0}".format(title_name))
43+
44+
def readfile(self, filename, method):
45+
with open(filename,method) as f:
46+
content = [line.strip('\n') for line in f]
47+
return content
48+
49+
def countfile(self, filename, method):
50+
file = open(filename,method)
51+
Counter = 0
52+
Content = file.read()
53+
CoList = Content.split("\n")
54+
for i in CoList:
55+
if i:
56+
Counter += 1
57+
58+
return Counter
59+
60+
61+
def getrandomproxy(self):
62+
proxies_file = self.readfile('proxy.txt','r')
63+
proxies = {
64+
"http":"http://{0}".format(random.choice(proxies_file)),
65+
"https":"https://{0}".format(random.choice(proxies_file))
66+
}
67+
68+
return proxies
69+
70+
71+
def __init__(self):
72+
self.settitle(script_title)
73+
self.clear(script_info)
74+
self.email = input('[#] Enter Email: ')
75+
self.password = input('[#] Enter Password: ')
76+
self.birth_year = int(input('[#] Enter the birth year (only year): '))
77+
self.birth_month = int(input('[#] Enter the birth month (1 - 12): '))
78+
self.birth_day = int(input('[#] Enter the birth day (1 - 28): '))
79+
self.gender = input('[#] Enter the gender (male or female): ')
80+
self.threads = self.countfile('proxy.txt','r')
81+
82+
def gencredentailsmethod(self):
83+
credentails = {}
84+
credentails['gender'] = self.gender
85+
credentails['birth_year'] = self.birth_year
86+
credentails['birth_month'] = self.birth_month
87+
credentails['birth_day'] = self.birth_day
88+
credentails['password'] = self.password
89+
username = string.ascii_letters + string.digits
90+
username = ''.join(random.choice(username) for i in range(random.randint(7,11)))
91+
credentails['username'] = username
92+
credentails['email'] = self.email
93+
94+
return credentails
95+
96+
def creator(self):
97+
try:
98+
99+
headers = {
100+
'User-agent': 'S4A/2.0.15 (com.spotify.s4a; build:201500080; iOS 13.4.0) Alamofire/4.9.0',
101+
'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8',
102+
'Accept': 'application/json, text/plain;q=0.2, */*;q=0.1',
103+
'App-Platform': 'IOS',
104+
'Spotify-App': 'S4A',
105+
'Accept-Language': 'en-TZ;q=1.0',
106+
'Accept-Encoding': 'gzip;q=1.0, compress;q=0.5',
107+
'Spotify-App-Version': '2.0.15'
108+
}
109+
110+
111+
url = 'https://spclient.wg.spotify.com/signup/public/v1/account'
112+
credentails = self.gencredentailsmethod()
113+
data = 'creation_point=lite_7e7cf598605d47caba394c628e2735a2&password_repeat={0}&platform=Android-ARM&iagree=true&password={1}&gender={2}&key=a2d4b979dc624757b4fb47de483f3505&birth_day={3}&birth_month={4}&email={5}&birth_year={6}'.format(credentails['password'],credentails['password'],credentails['gender'],credentails['birth_day'],credentails['birth_month'],credentails['email'],credentails['birth_year'])
114+
req = requests.post(url=url, data=data, headers=headers, proxies=self.getrandomproxy(), timeout=5)
115+
json_data = json.loads(req.text)
116+
117+
118+
if 'status' in json_data:
119+
if json_data['status'] == 1:
120+
username = json_data['username']
121+
if username != '':
122+
self.clear(script_info)
123+
print('[>] ACCOUNT CREATED SUCCESSFULLY\n[-] Email:{0}\n[-] Password:{1}\n[-] Username:{2}\n[-] Gender:{3}\n[-] Birth year:{4}\n[-] Birth month:{5}\n[-] Birth day:{6}\n'.format(credentails['email'],credentails['password'],credentails['username'],credentails['gender'],credentails['birth_year'],credentails['birth_month'],credentails['birth_day']))
124+
with open('reg.txt','a') as f:
125+
f.write('[INFO ACCOUNT]\nEmail:{0}\nPassword:{1}\nUsername:{2}\nGender:{3}\nBirth year:{4}\nBirth month:{5}\nBirth day:{6}\n___________________\n\n'.format(credentails['email'],credentails['password'],credentails['username'],credentails['gender'],credentails['birth_year'],credentails['birth_month'],credentails['birth_day']))
126+
time.sleep(self.threads)
127+
else:
128+
self.creator()
129+
else:
130+
self.creator()
131+
else:
132+
self.creator()
133+
except:
134+
self.creator()
135+
136+
137+
def start(self):
138+
while True:
139+
if active_count() <= self.threads:
140+
Thread(target=self.creator).start()
150141

151142

152143
if __name__ == "__main__":
153-
main = Main()
154-
main.start()
144+
main = Main()
145+
main.start()

0 commit comments

Comments
 (0)