www.cnblogs.com/ruiyqinrui

开源、架构、Linux C/C++/python AI BI 运维开发自动化运维。 春风桃李花 秋雨梧桐叶。“力尽不知热 但惜夏日长”。夏不惜,秋不获。@ruiY--秦瑞

python爬虫,C编程,嵌入式开发.hadoop大数据,桉树,onenebula云计算架构.linux运维及驱动开发.

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
import os
errx2 = "测试\n"
os.system("curl \'https://qyapi.weixin.qq.cbin/webhook/send?key=d16ee504-29a0-486c-8a75-168d4de155ca\' -H \'Content-Type: application/json\' -d \'{\"msgtype\": \"text\",\"text\": {\"content\": \"%s\"}}\'"%(errx2))

 

import os
import time

errx2 = "@所有人,发日报、带工牌、换鞋子,三不为乐捐225且珍惜!"
countInit = 0
max_r = 2
while countInit < max_r:
try:
#os.system("curl \'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=d16ee504-29a0-48   xxxxx\' -H \'Content-Type: application/json\' -d \'{\"msgtype\": \"text\",\"text\": {\"content\": \"%s\"}}\'"%(errx2))
os.system("curl \'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=fa4c44bc-e88e-48ce-a663-be6adac5fdad\' -H \'Content-Type: application/json\' -d \'{\"msgtype\": \"text\",\"text\": {\"content\": \"%s\"}}\'"%(errx2))
time.sleep(5)
break
except:
pass

posted on 2024-08-10 11:42  秦瑞It行程实录  阅读(7)  评论(0编辑  收藏  举报
www.cnblogs.com/ruiyqinrui