回复: 京东&腾讯视频会员等级秒变
转变前可以先刷腾讯视频的会员~ 有助于京享值的增加~~~
# -*- coding: utf8 -*-
import requests
import re
import time
from urllib.parse import quote
def start():
try:
s = requests.session()
cookie1 = 'TXSP_COOKIE'
this_time = int(round(time.time() * 1000))
login_url = 'https://vip.video.qq.com/fcgi-bin/comm_cgi?name=hierarchical_task_system&cmd=2&_=' + str(this_time)
headers={
'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.204 Safari/537.36',
'Cookie': cookie1
}
res =s.get(login_url,headers=headers).text
print('访问结果:'+res)
if 'Account Verify Error' in res:
print('cookies失效,通知SERVER酱!')
requests.get('https://sc.ftqq.com/SCKEY.send?text=' + quote('腾讯视频自动签到失败~'+time.strftime('%Y.%m.%d',time.localtime(time.time()))) +'&desp='+quote('cookies失效,请更新!\n'))
else:
print('签到完成')
except Exception as e:
print("地址访问失败,通知SERVER酱!")
requests.get('https://sc.ftqq.com/SCKEY.send?text=' + quote('腾讯视频自动签到失败~'+time.strftime('%Y.%m.%d',time.localtime(time.time()))) +'&desp='+quote('异常代码:\n'+str(e)))
def main_handler(event, context):
return start()
if __name__ == '__main__':
start()
以前论坛里有个老哥发了个TX视频自动签到的脚本
TX这几天改了机制,写死的Cookie不能直接用了,通过多次抓包发现是多了一个刷新Cookie的接口,故搞之
这是python2的脚本
以下是步骤,凑合看,看不懂我不解释
电脑访问 v.qq.com 开控制台 -> network 找到https://access.video.qq.com/user/auth_refresh 接口,把地址复制下来替换到脚本中
点开https://access.video.qq.com/user/auth_refresh请求复制Request Header中的Cookie,粘贴到脚本中
同上把Cookie同时复制到脚本第二处Cookie里面,注意有一个变量要保留不要替换
最后的接口是通知的用的SERVER酱,你们自己去补习
想办法每天定时执行这个脚本(我用的腾讯云函数)







