| 
 | 
 
 
发表于 2020-10-12 06:03:12
From FishC Mobile
|
显示全部楼层
|阅读模式
 
 
 
 
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册  
 
x
 
云打包,是将网页打包成APP的一个平台。如果我们能不断的访问他的接口,就可以实现疯狂的推送消息。 
模块清单如下: 
urlib(访问网页);time(计算时间);random(生成随机数) 
代码如下: 
import urllib.request  
from time import sleep,time 
import random 
print("开始调试...") 
m = 0 
while 1: 
    t1 = time() 
    r = str(random.randint(1,10549)) 
    with urllib.request.urlopen("https://pushmsg.ydbimg.com/rest/weblsq/1.0/PushMsg.aspx?key=07d4a51e&appid=310021&title=%E6%A0%87%E9%A2%98&msg="+r+"&url=https://lzr2006.github.io/wkgd&soundid=1&iosPushCount=3") as response: 
        html = response.read() 
        m = m + 1 
        t2 = time() 
        t = str(t2 - t1) 
    print("success,msg = ",r,"这是第" + str(m) + "次调试","用了" + t +"秒") 
 
这里是我的链接,希望大家试用的时候可以有度点。 
这是测试端应用链接:http://app.yundabao.cn/hander/d1apk.ashx?id=310021&name=jiuwei310021_200.apk |   
 
 
 
 |