{"id":13789303,"url":"https://github.com/sy-records/v-checkin","last_synced_at":"2025-05-12T05:32:11.400Z","repository":{"id":65262251,"uuid":"240639407","full_name":"sy-records/v-checkin","owner":"sy-records","description":"🚀 腾讯视频好莱坞会员V力值签到，支持两次签到：一次正常签到，一次手机签到。","archived":true,"fork":false,"pushed_at":"2021-12-15T13:06:37.000Z","size":644,"stargazers_count":111,"open_issues_count":2,"forks_count":68,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-05T01:47:05.567Z","etag":null,"topics":["qcloud","qq","serverless","tencent","tencent-video"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sy-records.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-15T03:34:54.000Z","updated_at":"2025-02-24T11:26:06.000Z","dependencies_parsed_at":"2023-01-16T15:00:52.606Z","dependency_job_id":null,"html_url":"https://github.com/sy-records/v-checkin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sy-records%2Fv-checkin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sy-records%2Fv-checkin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sy-records%2Fv-checkin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sy-records%2Fv-checkin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sy-records","download_url":"https://codeload.github.com/sy-records/v-checkin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253682556,"owners_count":21946963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["qcloud","qq","serverless","tencent","tencent-video"],"created_at":"2024-08-03T21:01:01.340Z","updated_at":"2025-05-12T05:32:10.195Z","avatar_url":"https://github.com/sy-records.png","language":"Python","funding_links":[],"categories":["视频"],"sub_categories":[],"readme":"# V Checkin\n\n🚀 腾讯视频好莱坞会员V力值签到。\n\n\u003e 手机签到已失效，只能一次了。\n\n## 准备\n\n* 注册[Server酱](http://sc.ftqq.com/)，获取`SCKEY`，修改脚本`index.py`中的`sckey`\n\u003e 用来通知微信提醒签到获得了多少V力值和**Cookie失效**，如果你不打算通知或者有其他方式，可以跳过\n\n* 需要一台有`Python2`环境的`Linux`服务器或者使用[腾讯云Serverless](https://console.cloud.tencent.com/scf)\n\u003e 用来定时执行脚本\n\n## 获取Cookie\n\n1. 电脑打开浏览器访问`v.qq.com`，打开控制台(`F12`)、切换到Network，找到 `https://access.video.qq.com/user/auth_refresh` 的接口，把`Request URL:`后的地址都复制一下，填写到脚本的`auth_refresh_url`中，如：\n\n![获取auth_refresh接口](https://cdn.jsdelivr.net/gh/sy-records/v-checkin@master/images/get-auth_refresh.png)\n\n```python\nauth_refresh_url = 'https://access.video.qq.com/user/auth_refresh?vappid=11059694\u0026vsecret=********\u0026type=qq\u0026g_tk=\u0026g_vstk=********\u0026g_actk=********\u0026callback=jQuery191048649********_1575435********4\u0026_=1575435********'\n```\n\n\u003e 可以搜索`auth_refresh`进行过滤\n\n2. 还是`auth_refresh`这个接口，复制`Request Header`中的`cookie`，填写到脚本的`login_headers`的`Cookie`中\n\n![获取cookie](https://cdn.jsdelivr.net/gh/sy-records/v-checkin@master/images/get-cookie.png)\n\n```python\nlogin_headers = {\n    'Referer': 'https://v.qq.com',\n    'Cookie': 'tvfe_boss_uuid=********; pgv_pvid=********; video_guid=***********; video_platform=2; pgv_info=ssid=***********; pgv_pvi=*************; pgv_si=*************; _qpsvr_localtk=***************; ptisp=; ptui_loginuin=************; RK=*************; ptcz=***************; main_login=qq; vqq_access_token=****************; vqq_appid=101483052; vqq_openid=********************; vqq_vuserid=*********************; vqq_vusession=dzsfo; vqq_refresh_token=*****************; uid=**************;'\n}\n```\n\n3. 重复第二步，粘贴到脚本中的`sign_headers`的`Cookie`中，注意修改`vqq_vusession`，变量`cookie['vqq_vusession']`需要保留不要替换\n\n\u003e 说明：等于把第二步中获取到的`Cookie`的`vqq_vusession=dzsfo;`放到末尾，并且修改为`vqq_vusession=`\n\n```python\nsign_headers = {\n    'Cookie': 'tvfe_boss_uuid=***********; pgv_pvid=***************; video_guid=***************; video_platform=2; pgv_info=ssid=****************; pgv_pvi=****************; pgv_si=***************; _qpsvr_localtk=*************; ptisp=; ptui_loginuin=***************; RK=****************; ptcz=*********************; main_login=qq; vqq_access_token=************; vqq_appid=101483052; vqq_openid=*************; vqq_vuserid=*************; vqq_vusession=' + cookie['vqq_vusession'] + ';'\n}\n```\n\n## 定时执行\n\n### Linux服务器\n\n使用`crontab`定时执行就可以了，以下表达式为每天凌晨1点执行一次\n\n```shell\n0 1 * * * python2 /home/www/v-checkin/start.py \u003e/dev/null 2\u003e\u00261\n```\n\n### 腾讯云Serverless\n\n使用腾讯云云函数来执行，方便没有服务器的同学。首先需要创建函数服务，打开腾讯云[云函数 - 控制台](https://console.cloud.tencent.com/scf)\n\n#### 编写函数\n\n1. 单击左侧导航栏【函数服务】，进入“函数服务”页面。\n2. 在页面上方选择一个地域，最好选择离你常用地区近点的，不至于导致账号异常。单击【新建】。如下图所示：\n\n![](https://cdn.jsdelivr.net/gh/sy-records/v-checkin@master/images/Serverless-1.png)\n\n3. 在“新建函数”页面填写函数基础信息，单击【下一步】。如下图所示：\n\n![](https://cdn.jsdelivr.net/gh/sy-records/v-checkin@master/images/Serverless-2.png)\n\n* 函数名称：可以自定义，比如为 `v_checkin`。\n* 运行环境：选择 “Python 2.7”。\n* 创建方式：选择 “空白函数”。\n\n4. 填写描述，复制刚才修改好的脚本`index.py`内容到下面的代码框中，并单击【完成】。如下图所示：\n\n![](https://cdn.jsdelivr.net/gh/sy-records/v-checkin@master/images/Serverless-3.png)\n\n函数创建完成后，自动进入创建成功函数的“函数配置”页面，可查看该云函数的函数配置信息。\n\n如果填错了代码，可以在选择【函数代码】中修改，修改完成后记得点击保存；点击【测试】，运行代码，测试结果是成功的话就没有问题了。\n\n#### 设置触发方式\n\n1. 在已创建函数的详情页面，选择【触发方式】，并单击【添加触发方式】。如下图所示：\n\n![](https://cdn.jsdelivr.net/gh/sy-records/v-checkin@master/images/Serverless-4.png)\n\n* 触发方式：选择 “定时触发”。\n* 触发周期：选择 “自定义触发周期”。\n* Cron表达式：自己填写，如`0 0 1 * * * *`，表示每天凌晨1点执行一次。Cron表达式不懂的可以参考[腾讯云文档](https://cloud.tencent.com/document/product/583/9708#cron-.E8.A1.A8.E8.BE.BE.E5.BC.8F)\n\n2. 填写完成点击【保存】即可。\n\n## License\n\n[MIT](LICENSE)\n\n本项目仅用于学习、研究用途，由使用人自行承担因此引发的一切法律责任，作者不承担法律责任。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsy-records%2Fv-checkin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsy-records%2Fv-checkin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsy-records%2Fv-checkin/lists"}