Roblox 大众账户创建和跟随脚本

问题描述 投票:0回答:1

代码似乎没有任何问题但是在运行代码时它在创建新帐户时遇到问题并始终显示“无法创建新帐户”

这是我的代码:

import requests
import json
import time

# Define the URL for creating a new Roblox account
create_account_url = "https://www.roblox.com/account/signupredir"

# Define the URL for logging into the Roblox account
login_url = "https://auth.roblox.com/v2/login"

# Define the URL for following a specific user on Roblox
follow_user_url = "https://friends.roblox.com/v1/users/{}/follow"

# Define the number of accounts to create
num_accounts = 10

# Define the username to follow
username_to_follow = "example_username"

# Define the headers to be used in requests
headers = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3"
}

# Create a session for the requests
session = requests.Session()

# Loop through the number of accounts to create
for i in range(num_accounts):
    print(f"Creating account {i+1} of {num_accounts}...")

    # Send a GET request to the account creation URL to get the required authenticity token
    create_account_response = session.get(create_account_url, headers=headers)
    authenticity_token = create_account_response.cookies.get("RBXEventTrackerV2")

    # Define the data for creating the new account
    data = {
        "birthday": "01/01/2000",
        "gender": "2",
        "username": f"example_username_{i}",
        "password": "example_password",
        "passwordConfirm": "example_password",
        "referrer": "",
        "email": f"example_username_{i}@example.com",
        "emailConfirm": f"example_username_{i}@example.com",
        "birthMonth": "1",
        "birthDay": "1",
        "birthYear": "2000",
        "context": "UserSignup",
        "displayAvatarV2": "false",
        "displayContextV2": "false",
        "frequentRobuxBuyer": "false",
        "passwordMode": "PWSignUp",
        "emailMode": "EmailSignUp",
        "isTosAgreementBoxChecked": "true",
        "recaptchaV3Token": "",
        "captchaProvider": "PROVIDER_ARKOSE_LABS",
        "captchaToken": "",
        "captchaType": "",
        "g-recaptcha-response": "",
        "inviteCode": "",
        "authenticityToken": authenticity_token
    }

    # Send a POST request to create the new account
    create_account_response = session.post(create_account_url, headers=headers, data=data)

    # Check if the account was successfully created
    if "https://www.roblox.com/newlogin" in create_account_response.url:
        print("Account created successfully!")
    else:
        print("Account creation failed.")

    # Wait for 5 seconds before logging in to the next account
    time.sleep(5)

    # Define the data for logging in to the new account
    data = {
        "ctype": "Username",
        "cvalue": f"example_username_{i}",
        "password": "example_password",
        "captcha": "",
        "captchaProvider": "PROVIDER_ARKOSE_LABS",
        "captchaToken": "",
        "captchaType": "",
        "rememberMe": "false",
        "returnUrl": "",
        "returnUrlIsEncoded": "false"
    }

我希望有人能看一看并帮助我解决帐户创建问题。

python roblox account creation
1个回答
-1
投票

这段代码有多久了,你在哪里找到的?

© www.soinside.com 2019 - 2024. All rights reserved.