![云函数创建](https://camo.githubusercontent.com/04b4c32c776ab176fdb27e3dbf3f6027ac45f7f2ee9251fa3331645287d3e49a/68747470733a2f2f73312e617831782e636f6d2f323032302f30352f32332f5978464b32742e706e67)
-2:触发时间自己设置(图中时间为每天23点,便于任务过完忘记签到)-
![定时触发](https://camo.githubusercontent.com/f6e787fbc53ffd5b1654b70767a7db4b170f4e48272e0647d54e17dc6c9cb992/68747470733a2f2f73312e617831782e636f6d2f323032302f30352f32332f59786b5a4c542e706e67)
import requests
def request():
Cookie= 'tvfe_boss_uuid=778853155beb80e0; '
#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 }
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()