前言

偶然间看到一位大佬的文章《腾讯视频会员签到脚本及定时签到配置》突发奇想,想弄一个关于qq自动签到的东西。
大佬文章链接:
https://xtthink.cn/index.php/archives/24/

# -*- coding: utf8 -*-
import requests
import urllib3

def main_handler(event, context):
    # 此处输入QQ号
    qq=""
    # 此处输入skey
    skey=""
    # 此处输入skey
    pskey=""
    # 此处输入skey
    superkey=""
    # 此处输入Server酱的SCKEY
    SCKEY=""
    # 此处输入Qmsg酱的send
    send=""

    # 执行签到任务
    requests.packages.urllib3.disable_warnings()
    qqvip = requests.get("https://api.blogbig.cn/qd/vipqd.php?qq="+qq+"&skey="+skey,verify=False)
    huang = requests.get("https://api.blogbig.cn/qd/yqd.php?qq="+qq+"&skey="+skey+"&pskey="+pskey,verify=False)
    video = requests.get("https://api.blogbig.cn/qd/video.php?qq="+qq+"&skey="+skey,verify=False)
    qblue = requests.get("https://api.blogbig.cn/qd/gamevip.php?qq="+qq+"&skey="+skey+"&superkey="+superkey,verify=False)
    qsyjs = requests.get("https://api.blogbig.cn/qd/qqgame.php?qq="+qq+"&skey="+skey,verify=False)
    qsign = requests.get("https://api.blogbig.cn/qd/checkin.php?qq="+qq+"&skey="+skey,verify=False)
    qshop = requests.get("https://api.blogbig.cn/qd/daoju.php?qq="+qq+"&skey="+skey,verify=False)
    qgame = requests.get("https://api.blogbig.cn/qd/gameqd.php?qq="+qq+"&skey=@"+skey,verify=False)
    qcdld = requests.get("https://api.blogbig.cn/qd/dld.php?qq="+qq+"&skey="+skey,verify=False)

    # Server酱和Qmsg酱不为空就执行
    if(SCKEY != "" and send != ""):
        a={qqvip,huang,video,qblue,qsyjs,qsign,qshop,qgame,qcdld}
        for i in a:
            if(i==qqvip):title="QQ会员签到"
            elif(i==huang):title="QQ黄钻签到"
            elif(i==video):title="腾讯视频签到"
            elif(i==qblue):title="QQ蓝钻签到"
            elif(i==qsyjs):title="QQ手游加速"
            elif(i==qsign):title="QQ每日打卡"
            elif(i==qshop):title="道聚城签到"
            elif(i==qgame):title="游戏大厅签到"
            elif(i==qcdld):title="Q宠大乐斗签到"
            # 去除<br/>标签
            text = i.text.replace("<br/>","\n").replace("<br>","")
            # 存在SCKEY或者send就发送消息
            if(SCKEY != ""):
                requests.get("https://sc.ftqq.com/"+SCKEY+".send?text="+title+"&desp="+text)
            if(send != ""):
                requests.get("https://qmsg.zendee.cn/send/"+send+"?msg="+text)
最后修改:2021 年 03 月 14 日
如果觉得我的文章对你有用,请随意赞赏