中国联通每天领取90M流量开源代码



  • #!/usr/bin/python3.6
    #import readline
    import requests as r
    import time
      
    def f1(num):
        data1 = {
            'phoneVal': num,
            'type': '21'
            }
        #获取验证码
        print(r.post('https://m.10010.com/god/AirCheckMessage/sendCaptcha', data = data1).text)
         
        #领取流量
        print(r.get('https://m.10010.com/god/qingPiCard/flowExchange?number=%s&type=21&captcha=%s' % (num, input('验证码: ').strip())).text)
      
    phonenumber=input("请输入手机号:")
     
    for i in range(2):
        f1(phonenumber)
        time.sleep(65)
     
    f1(phonenumber)