forked from geekcomputers/Python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspotifyAccount.py
122 lines (94 loc) · 3.19 KB
/
spotifyAccount.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
import platform
import random
import string
import threading
import time
from os import system
import requests
if platform.system() == "Windows": # checking OS
title = "windows"
else:
title = "linux"
def randomName(size=10, chars=string.ascii_letters + string.digits):
return "".join(random.choice(chars) for i in range(size))
def randomPassword(size=14, chars=string.ascii_letters + string.digits):
return "".join(random.choice(chars) for i in range(size))
global maxi
global created
created = 0
errors = 0
class proxy:
def update(self):
while True:
data = ""
urls = [
"https://api.proxyscrape.com/?request=getproxies&proxytype=socks4&timeout=10000&ssl=yes"
]
for url in urls:
data += requests.get(url).text
self.splited += data.split("\r\n") # scraping and splitting proxies
time.sleep(600)
def get_proxy(self):
random1 = random.choice(self.splited) # choose a random proxie
return random1
def FormatProxy(self):
proxyOutput = {"https": "socks4://" + self.get_proxy()}
return proxyOutput
def __init__(self):
self.splited = []
threading.Thread(target=self.update).start()
time.sleep(3)
proxy1 = proxy()
def creator():
global maxi
global created
global errors
while maxi > created:
if title == "windows":
system(
"title "
+ f"Spotify Account Creator by KevinLage https://github.com/KevinLage/Spotify-Account-Creator Created: {created}/{maxi} Errors:{errors}"
)
s = requests.session()
email = randomName()
password = randomPassword()
data = {
"displayname": "Josh",
"creation_point": "https://login.app.spotify.com?utm_source=spotify&utm_medium=desktop-win32&utm_campaign=organic",
"birth_month": "12",
"email": email + "@gmail.com",
"password": password,
"creation_flow": "desktop",
"platform": "desktop",
"birth_year": "1991",
"iagree": "1",
"key": "4c7a36d5260abca4af282779720cf631",
"birth_day": "17",
"gender": "male",
"password_repeat": password,
"referrer": "",
}
try:
r = s.post(
"https://spclient.wg.spotify.com/signup/public/v1/account/",
data=data,
proxies=proxy1.FormatProxy(),
)
if '{"status":1,"' in r.text:
open("created.txt", "a+").write(email + "@gmail.com:" + password + "\n")
created += 1
if title == "windows":
system(
"title "
+ f"Spotify Account Creator : {created}/{maxi} Errors:{errors}"
)
else:
errors += 1
except:
pass
maxi = int(input("How many accounts do you want to create?\n"))
maxthreads = int(input("How many Threads?\n"))
num = 0
while num < maxthreads:
num += 1
threading.Thread(target=creator).start() # Start Checking Thread