damm 的 eSIM 基地通知专用
Photo
#chatgpt
现在可以使用同样的方法通过PayPal订阅一年0欧元的ChatGPT Go

分享一个输出🇮🇳免费一年的go plan支持pp付款链接的脚本:

import requests

# === 配置参数 ===
TOKEN = ""         # 请替换成你的token
COUNTRY = "DE"               # 国家代码
CURRENCY = "EUR"             # 货币代码

headers = {
    'accept': '*/*',
    'accept-language': 'zh-CN,zh;q=0.9',
    'authorization': f'Bearer {TOKEN}',
    'cache-control': 'no-cache',
    'content-type': 'application/json',
    'oai-language': 'zh-CN',
    'origin': 'https://chatgpt.com',
    'pragma': 'no-cache',
    'priority': 'u=1, i',
    'referer': 'https://chatgpt.com/',
    'sec-ch-ua': '"Chromium";v="140", "Not=A?Brand";v="24", "Google Chrome";v="140"',
    'sec-ch-ua-arch': '"x86"',
    'sec-ch-ua-bitness': '"64"',
    'sec-ch-ua-full-version': '"140.0.7339.210"',
    'sec-ch-ua-full-version-list': '"Chromium";v="140.0.7339.210", "Not=A?Brand";v="24.0.0.0", "Google Chrome";v="140.0.7339.210"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-model': '""',
    'sec-ch-ua-platform': '"Windows"',
    'sec-ch-ua-platform-version': '"15.0.0"',
    'sec-fetch-dest': 'empty',
    'sec-fetch-mode': 'cors',
    'sec-fetch-site': 'same-origin',
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36'
}

def create_checkout_link():
    json_data = {
        "promo_campaign": "go-12-months-free",
        "billing_details": {
            "country": COUNTRY,
            "currency": CURRENCY
        },
        "checkout_ui_mode": "redirect",
        "plan_name": "chatgptgoplan"
    }
    try:
        resp = requests.post(
            'https://chatgpt.com/backend-api/payments/checkout',
            headers=headers,
            json=json_data,
            timeout=20
        )
        resp.raise_for_status()
        data = resp.json()
        url = data.get("url")
        if url:
            print(f"付款链接:{url}")
        else:
            print(f"创建失败,返回内容:{data}")
    except requests.exceptions.HTTPError as e:
        print(f"HTTP错误:{e}, 响应内容: {resp.text}")
    except requests.exceptions.RequestException as e:
        print(f"请求异常:{e}")
    except Exception as e:
        print(f"解析或其他异常:{e}")

if __name__ == "__main__":
    create_checkout_link()

这里获取token: https://chatgpt.com/api/auth/session

需要印度、印尼、阿富汗、孟加拉国、不丹、文莱、柬埔寨、老挝、马来西亚、马尔代夫、缅甸、尼泊尔、巴基斯坦、菲律宾、斯里兰卡、泰国、东帝汶、越南ip运行

原始来源: https://www.nodeseek.com/post-486101-1
 
 
Back to Top