我正在尝试从发布请求创建一个不和谐帐户,但是当我创建它时,该帐户会被手机锁定,我不知道如何解决这个问题。
我的请求 :
def get_headers():
return {
'Accept':'*/*',
'Referer': 'https://discordapp.com/register',
'Accept-Language':'fr',
'Alt-Used':'discord.com',
'Cache-Control':'no-cache',
'Connection':'keep-alive',
'Content-Type':'application/json',
"Host":"discord.com",
"Origin":"https://discord.com",
"Pragma":"no-cache",
"X-Debug-Options":"bugReporterEnabled",
"Sec-Fetch-Dest":"empty",
"Sec-Fetch-Mode":"cors",
"Sec-Fetch-Site":"same-origin",
"TE":"trailers",
"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0",
}
import random
lines = open('./data/discord_usernames.txt').read().splitlines()
myline =random.choice(lines)
#print("username : ", myline)
liness = open('./data/emails.txt').read().splitlines()
mylinee =random.choice(liness)
payload = {
"captcha_key":output,
"consent":True,
"date_of_birth":"1998-12-05",
"email":mylinee,
"gift_code_sku_id":"null",
"invite":"null",
"password":passw,
"username":myline
}
headers = get_headers()
reg = s.post("https://discord.com/api/v9/auth/register", data=json.dumps(payload), headers=headers,verify=False)