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