彩云小译免费领VIP的激活码

5,037次阅读

共计 1113 个字符,预计需要花费 3 分钟才能阅读完成。

在 HostLoc 看到这个,翻了段代码自己完善了一下

改下开始结束 ID 和手机号就好了

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ----------------------------------- 
# @CreateTime   : 2020/2/25 13:25
# @Author       : WaterIce
# @Email        : waterice@vip.qq.com
# @Version      : 1.0 
# @File         : caiyun.py 
# @Desc         : 测试彩云小译可用 ID
# ------------------------------------


import requests
import json
url = 'https://biz.caiyunapp.com/v1/excode/send'

for i in range(1,50000):# 开始结束 ID
    body = {"link_id": str(i),
     "phone_num": "13333333333",# 手机号
     "app_name": "xiaoyi"
    }
    headers = {"Accept": "application/json, text/plain, */*","Accept-Encoding": "gzip, deflate, br","Accept-Language": "zh-cn","Connection": "keep-alive","Content-Length": "62","Content-Type": "application/json;charset=UTF-8","Host": "biz.caiyunapp.com","Origin": "https://caiyunapp.com","Referer": "https://caiyunapp.com/invited/conversion.html?id="+str(i),"User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36",}
    response = requests.post(url, data = json.dumps(body), headers = headers)
    data = response.text
    #print(i)
    if i%10 == 0 :
        print('扫描到:%d'%i)
    data1 = json.loads(data)['rc']
    data1 = int(data1)
    if data1 > -1:
        id = body['link_id']
        print('找到一个可用 ID 了噢 %s'%id)

正文完
 0
Blood.Cold
版权声明:本站原创文章,由 Blood.Cold 于2020-02-25发表,共计1113字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。