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

  • 彩云小译免费领VIP的激活码已关闭评论
  • 1,014 views
  • A+
所属分类:python

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

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

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ----------------------------------- 
# @CreateTime   : 2020/2/25 13:25
# @Author       : WaterIce
# @Email        : [email protected]
# @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)
  • 我的微信
  • 这是我的微信扫一扫
  • weinxin
  • 我的微信公众号
  • 我的微信公众号扫一扫
  • weinxin