Giter Site home page Giter Site logo

tx_video_sign's Introduction

-1:需要借助腾讯云的云函数服务每日定点执行-

云函数创建

-2:触发时间自己设置(图中时间为每天23点,便于任务过完忘记签到)-

定时触发

-3:添加代码-

import requests
def request():
            #参考这个网站https://sc.ftqq.com/获取自己的sckey,cookie过期提醒
            #不需要设置Cookie过期提醒可以把sckey,send_url相关代码删掉
            sckey=''
            send_url = "https://sc.ftqq.com/%s.send"%(sckey)
            Cookie= ''
            #cookie在https://film.qq.com/x/autovue/grade/登录账号获取
            Referer= 'https://film.qq.com/x/autovue/grade/'
            Agent= 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1'
            headers = {  'Referer': Referer,  'User-Agent': Agent, 'Cookie': Cookie }
            login = requests.get('https://vip.video.qq.com/fcgi-bin/comm_cgi?name=spp_MissionFaHuo&cmd=4&task_id=3&_=1582368319252&callback=Zepto1582368297765 ',                headers=headers)
            #如果请求返回信息包含no login说明cookie已经失效
            if login.content.decode("utf-8").__contains__("no login"):
                         print ("auth_refresh error")
                         params = {'text': '腾讯视频V力值签到通知', 'desp': '获取Cookie失败,Cookie失效'}
                         requests.post(send_url, params=params)
            urls=[
                    'https://vip.video.qq.com/fcgi-bin/comm_cgi?name=spp_MissionFaHuo&cmd=4&task_id=7&_=1582364733058&callback=Zepto1582364712694',#下载签到请求
                    'https://vip.video.qq.com/fcgi-bin/comm_cgi?name=spp_MissionFaHuo&cmd=4&task_id=6&_=1582366326994&callback=Zepto1582366310545',#签到请求
                    'https://vip.video.qq.com/fcgi-bin/comm_cgi?name=hierarchical_task_system&cmd=2&_=1555060502385&callback=Zepto1555060502385',#赠送签到请求
                    'https://vip.video.qq.com/fcgi-bin/comm_cgi?name=spp_MissionFaHuo&cmd=4&task_id=3&_=1582368319252&callback=Zepto1582368297765',#弹幕签到请求
                    'https://vip.video.qq.com/fcgi-bin/comm_cgi?name=spp_MissionFaHuo&cmd=4&task_id=1&_=1582997048625&callback=Zepto1582997031843'#观看60分钟签到
            ]
            for url in urls:
                response = requests.get(url=url, headers=headers)
                print(response.content.decode("utf-8"))
            return 1
def main(event, context):
    request()

tx_video_sign's People

Contributors

okayyang avatar

Stargazers

itxve avatar  avatar  avatar  avatar FlowerCat avatar  avatar  avatar  avatar  avatar loa123 avatar 394481125 avatar Misaka avatar lqbby avatar eth.xxs avatar  Cheiuan avatar  avatar  avatar zifeiyu avatar  avatar  avatar AuYoYa avatar  avatar  avatar  avatar  avatar  avatar Aaron avatar 清韵 avatar  avatar Paopao avatar down_drop avatar  avatar  avatar lwj528 avatar

Watchers

 avatar Bill avatar  avatar zifeiyu avatar

tx_video_sign's Issues

使用报错 !

Zepto158236*****({"msg":"任务未完成","ret":-777902});错误

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.