Safe to say this doesn't work anymore:
Code:
eaders={"Accept-Encoding": "gzip",
"Accept-Language": "en-US",
"App-Platform": "Android",
"Connection": "Keep-Alive",
"Content-Type": "application/x-www-form-urlencoded",
"Host": "spclient.wg.spotify.com",
"User-Agent": "Spotify/8.6.72 Android/29 (SM-N976N)",
"Spotify-App-Version": "8.6.72",
"X-Client-Id": getRandomString(32)}
payload = {"creation_point": "client_mobile",
"gender": "male" if random.randint(0, 1) else "female",
"birth_year": random.randint(1990, 2000),
"displayname": nick,
"iagree": "true",
"birth_month": random.randint(1, 11),
"password_repeat": passw,
"password": passw,
"key": "142b583129b2df829de3656f9eb484e6",
"platform": "Android-ARM",
"email": email,
"birth_day": random.randint(1, 20)}
Here is what updates need to look like:
Code:
payload = {
"account_details": {
"birthdate": birthday,
"consent_flags": {
"eula_agreed": True,
"send_email": True,
"third_party_email": False
},
"display_name": username,
"email_and_password_identifier": {
"email": gmail,
"password": password
},
"gender": randint(1, 2)
},
"callback_uri": "https://auth-callback.spotify.com/r/android/music/signup",
"client_info": {
"api_key": "142b583129b2df829de3656f9eb484e6",
"app_version": "v2",
"capabilities": [1],
"installation_id": str(uuid4()),
"platform": "Android-ARM"
},
"tracking": {
"creation_flow": "",
"creation_point": "client_mobile",
"referrer": ""
}
# "recaptcha_token": f"",
# "submission_id": f"{challenge_id}",
# "flow_id": f"{flow_ctx}"
}
client_id = str(uuid4()).replace('-', '')
headers = {
'accept': '*/*',
'accept-encoding': 'gzip',
'accept-language': 'en-US;q=0.5',
"app-platform": "Android",
'client-token': c_token,
'connection': 'Keep-Alive',
'Origin': 'https://www.spotify.com',
'content-length': str(len(json.dumps(payload))),
'host': 'spclient.wg.spotify.com',
'spotify-app-version': '8.8.0.347',
'user-agent': 'Spotify/8.8.0.347 Android/25 (SM-G988N)',
'x-client-id': client_id,
}