from urllib import response
import requests
import json
import time
def choices():
print("Creation Shop Register Script By Ken Samonte\n")
print("=====================================================")
print("Please Set-Up your Account First")
time.sleep(2.0)
invite_code = "be5cb3"
password = "Kensamonte11"
time.sleep(1.0)
print("You Have Set Up Your Referral and Password Successfully")
print("=====================================================\n")
time.sleep(5.0)
def register ():
mobile_number = input("Mobile Number: ")
payload = json.dumps({"mobile": mobile_number, "type":"register"})
request = requests.post("https://www.creationshops.com/captcha/sms", data=payload)
response = request.text
req = json.loads(response)
f = req["msg"]
if f == "ok":
otp = input("Enter One Time Pin: ")
reg = json.dumps({"mobile": mobile_number,"code": otp,"password": password,"invite_code": invite_code,"agent_code":"","appsflyer_id":"","cid":""})
freg = requests.post("https://www.creationshops.com/account/register", data=reg)
r = freg.text
q = json.loads(r)
s = q["msg"]
if s == "ok":
print("Account Created Successfully.\n")
repeat = '1'
if repeat == '1':
print("=====================================================\n")
register()
else:
print("See yah")
exit()
elif f == "The verification code is sent in excess of the data limit":
print("Your IP Address is detected. Change your IP now.\n")
repeat = '1'
if repeat == '1':
print("=====================================================\n")
register()
else:
print("See yah")
exit()
elif f == "The account already exists, please log in directly":
print("The number you input already have an account.\n")
repeat = '1'
if repeat == '1':
print("=====================================================\n")
register()
else:
print("See yah")
exit()
else:
print(f)
repeat = '1'
if repeat == '1':
print("=====================================================\n")
register()
else:
print("See yah")
exit()
register()
choices()