[toc]
[MITM]
hostname = api.inews.qq.com
https://raw.githubusercontent.com/Sunert/Scripts/master/TaskConf/txnews/surge.sgmodule
- 本地重写
[Script]
腾讯新闻 = type=cron,cronexp=0 8 0 * * *,script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/txnews.js,script-update-interval=0
腾讯新闻 = type=http-request,pattern=https:\/\/api\.inews\.qq\.com\/event\/v1\/user\/event\/report\?,script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/txnews.js, requires-body=true
腾讯新闻 = type=http-request,pattern=https:\/\/api\.prize\.qq\.com\/v1\/newsapp\/chajianrp\/sendprize,script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/txnews.js
[Script]
腾讯新闻 = type=cron,script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/txnews.js,cronexpr="1 */6 * * *",timeout=20,enable=true
https://raw.githubusercontent.com/Sunert/Scripts/master/TaskConf/txnews/loon.plugin
- 本地重写
[Script]
cron "04 00 * * *" script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/txnews.js, enabled=true, tag=腾讯新闻
http-request https:\/\/api\.inews\.qq\.com\/event\/v1\/user\/event\/report\? script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/txnews.js, requires-body=true, enabled=true, tag=腾讯新闻
腾讯新闻 = type=http-request,pattern=https:\/\/api\.prize\.qq\.com\/v1\/newsapp\/chajianrp\/sendprize,script-path=https://raw.githubusercontent.com/Sunert/Scripts/master/Task/txnews.js
[rewrite_remote]
https://raw.githubusercontent.com/Sunert/Scripts/master/TaskConf/txnews/qx_rewite.txt
- 本地重写配置
[rewrite_local]
https:\/\/api\.inews\.qq\.com\/event\/v1\/user\/event\/report\? url script-request-body https://raw.githubusercontent.com/Sunert/Scripts/master/Task/txnews.js
https:\/\/api\.prize\.qq\.com\/v1\/newsapp\/chajianrp\/sendprize url script-request-header https://raw.githubusercontent.com/Sunert/Scripts/master/Task/txnews.js
- 本地任务配置
[task_local]
1 */5 * * * https://raw.githubusercontent.com/Sunert/Scripts/master/Task/txnews.js, tag=腾讯新闻
-
打开腾讯新闻app,阅读几篇文章,倒计时结束后即可获取阅读Cookie
-
看一次推荐视频,获取视频地址
-
打开链接"https://news.qq.com/FERD/cjRedDown.htm"或者点击腾讯新闻通知,获取天天领红包地址
Actions Secrets
| Name | 脚本相关YML | Value分割符 | 必须 / 可选 | 注意事项及样式(其中"xxx"代表任意字符) |
|---|---|---|---|---|
| TXNEWS_COOKIE | 腾讯新闻 txnews.yml | & | 必须 | 请求地址: "https://api.inews.qq.com/event/v1/user/event/report?", 腾讯新闻 Cookie: openxx=xxx |
| TXNEWS_SIGN | 同上 | # | 必须 | 请求地址同上, 阅读请求地址链接 |
| TXNEWS_VIDEO | 同上 | # | 必须 | 请求地址同上, 视频请求地址链接 |
| TXNEWS_NOTIFY_CONTROL | 同上 | true/false | 可选 | 腾讯新闻通知开关 默认当余额大于2元且通知间隔为50时推送通知 |
- 可能腾讯有某些限制,有些号码无法领取红包,手动阅读几篇,能领取红包,一般情况下都是正常的
- 此脚本根据阅读篇数开启通知,默认阅读50篇通知一次
- 支持boxjs配置,增加通知跳转链接https://news.qq.com/FERD/cjRedDown.htm,需手动领取此红包