快手极速版

最近几年刷短视频比较火爆,尤其是快手、抖音之类的上市公司,大多数都是通过手工来刷视频获取,会浪费大家很多时间,今天我来使用一个完全不同的方法,不编程直接通过配置参数来实现刷视频,实现步骤如下:

创建自动构建

进入冰狐智能辅助​在网页端「移动端」/「自动构建脚本」中新建一个“构建”。

自动填充模块和参数

通过元数据可以直接复制一个完全一样的构建。在上一步创建的构建右边点击“元数据”按钮,将如下元数据拷贝进入并保存,此时系统会根据元数据自动完成模块参数配置。

{

"type": "root",

"children": [{

"type": "declareVar",

"var": [{

"name": "ret",

"type": "normal",

"initType": "null",

"initValue": "null"

}, {

"name": "view",

"type": "normal",

"initType": "null",

"initValue": "null"

}, {

"name": "viewContainer",

"type": "normal",

"initType": "null",

"initValue": "null"

}, {

"name": "item",

"type": "normal",

"initType": "null",

"initValue": "null"

}]

}, {

"type": "enterApp",

"desc": "进入APP",

"debug": true,

"packageName": "com.kuaishou.nebula",

"findTag": "id:com.kuaishou.nebula:id/redFloat-",

"autoInstall": false,

"autoUpdate": false,

"wait": "1000",

"failed": "exitPopup",

"maxStep": "30",

"children": [{

"type": "clickAndEnter",

"desc": "点击进入任务页面",

"class": 1,

"debug": true,

"clickTag": "id:com.kuaishou.nebula:id/left_btn-",

"checkTag": "txt:去赚钱-",

"root": "",

"mode": "2",

"failed": "exitTaskPopupWithAD",

"descendant": [],

"duration": "500",

"maxStep": "8",

"beforeWait": "0",

"afterWait": "0",

"children": [{

"type": "clickAndEnter",

"desc": "点击进入页面",

"class": "1",

"debug": true,

"clickTag": "txt:去赚钱-",

"checkTag": "txt:任务中心|txt:日常任务-",

"root": "",

"mode": "1",

"failed": "exitTaskPopupWithAD",

"descendant": [],

"duration": "500",

"maxStep": "20",

"beforeWait": "0",

"afterWait": "3000",

"children": [{

"type": "searchAndLoopDeal",

"desc": "搜索控件并循环处理",

"debug": true,

"root": "",

"retryCount": "1",

"failed": "exitTaskPopupWithAD",

"duration": "500",

"maxStep": "8",

"beforeWait": "0",

"afterWait": "0",

"dealItems": [{

"key": "txt:去签到-$&1",

"value": {

"type": "click",

"desc": "点击控件",

"class": "2",

"debug": true,

"mode": "2",

"random": true,

"descendant": [],

"beforeWait": "0",

"afterWait": "2000",

"target": "view"

}

}, {

"key": "txt:福利-$&2",

"value": {

"type": "click",

"desc": "金币悬赏",

"class": "2",

"debug": true,

"mode": "2",

"random": true,

"descendant": [],

"beforeWait": "0",

"afterWait": "1000",

"target": "view"

}

}, {

"key": "txt:领福利-$&2",

"value": {

"type": "clickAndEnter",

"desc": "看直播",

"class": "2",

"debug": true,

"checkTag": "txt:更多直播|txt^:说点什么-",

"mode": "2",

"failed": "exitTaskPopupWithAD",

"descendant": [],

"duration": "500",

"maxStep": "5",

"beforeWait": "0",

"afterWait": "8000",

"target": "view",

"children": [{

"type": "loop",

"desc": "循环处理",

"class": 1,

"debug": true,

"minRunTime": "1.5",

"maxRunTime": "1.5",

"children": [{

"type": "findView",

"desc": "查找控件",

"debug": true,

"root": "",

"false": {

"type": "break",

"desc": "跳出循环"

},

"failed": "",

"duration": "500",

"maxStep": "8",

"beforeWait": "0",

"afterWait": "0",

"dealItems": [{

"key": "id:com.kuaishou.nebula:id/award_count_down_group-",

"value": {

"type": "sleep",

"desc": "延时",

"debug": false,

"minTime": "1000",

"maxTime": "1000"

}

}]

}]

}, {

"type": "back2Page",

"desc": "返回页面",

"debug": false,

"tag": "txt:任务中心|txt:我的金币-",

"root": "",

"backFirst": "true",

"failed": "exitTaskPopupWithAD",

"duration": "500",

"maxStep": "5",

"beforeWait": "0",

"afterWait": "0"

}]

}

}, {

"key": "txt^:已连续签到-$&1",

"value": {

"type": "click",

"desc": "点击控件",

"class": "2",

"debug": false,

"mode": "2",

"random": true,

"descendant": [-1, -1, -1, 0],

"beforeWait": "0",

"afterWait": "1000",

"target": "view"

}

}, {

"key": "txt^:签到立得|txt^:立即签到|txt^:补签再得-$&1",

"value": {

"type": "click",

"desc": "点击控件",

"class": "2",

"debug": false,

"mode": "3",

"random": true,

"descendant": [],

"beforeWait": "0",

"afterWait": "1000",

"target": "view"

}

}, {

"key": "txt:领现金|txt^:我的抵用金-$&1",

"value": {

"type": "clickAndEnter",

"desc": "点击进入页面",

"class": "2",

"debug": true,

"checkTag": "txt:分享领现金-",

"mode": "2",

"failed": "exitTaskPopupWithAD",

"descendant": [],

"duration": "500",

"maxStep": "10",

"beforeWait": "0",

"afterWait": "0",

"target": "view",

"children": [{

"type": "findView",

"desc": "查找控件",

"debug": true,

"root": "",

"failed": "",

"duration": "500",

"maxStep": "5",

"beforeWait": "0",

"afterWait": "0",

"dealItems": [{

"key": "txt:可领取|txt:可兑换-",

"value": {

"type": "if",

"desc": "条件处理",

"class": "1",

"debug": true,

"target": "view",

"descendant": [-1, 1],

"conditions": "text@#>=:3@#",

"children": [{

"type": "click",

"desc": "点击3元",

"class": 1,

"debug": false,

"tag": "txt:3元-",

"mode": "2",

"root": "",

"failed": "exitTaskPopupWithAD",

"maxStep": "5",

"random": true,

"descendant": [],

"duration": "500",

"beforeWait": "0",

"afterWait": "1000"

}, {

"type": "clickAndEnter",

"desc": "点击进入提现界面",

"class": 1,

"debug": false,

"clickTag": "txt:立即领取|txt:立即兑换-",

"checkTag": "txt:极速到账|txt:立即提现-",

"root": "",

"mode": "2",

"failed": "",

"descendant": [],

"duration": "500",

"maxStep": "5",

"beforeWait": "0",

"afterWait": "0",

"children": [{

"type": "if",

"desc": "是否为极速到账",

"class": 1,

"debug": true,

"target": "view",

"descendant": [],

"conditions": "text@#precise:极速到账@#",

"children": [{

"type": "clickAndEnter",

"desc": "点击进入分享页面",

"class": 1,

"debug": true,

"clickTag": "txt:极速到账-",

"checkTag": "txt:选择一个聊天|txt:选择-",

"root": "",

"mode": "2",

"failed": "",

"descendant": [],

"duration": "500",

"maxStep": "20",

"beforeWait": "0",

"afterWait": "2000",

"children": [{

"type": "back",

"desc": "按返回键",

"debug": false,

"count": "1",

"duration": "1000",

"beforeWait": "0",

"afterWait": "5000"

}]

}]

}, {

"type": "clickAndEnter",

"desc": "进入提现页面",

"class": 1,

"debug": true,

"clickTag": "txt:立即提现-",

"checkTag": "txt:获取验证码-",

"root": "",

"mode": "2",

"failed": "",

"descendant": [],

"duration": "500",

"maxStep": "10",

"beforeWait": "0",

"afterWait": "0",

"children": [{

"type": "click",

"desc": "获取验证码",

"class": "2",

"debug": false,

"mode": "2",

"random": true,

"descendant": [],

"beforeWait": "0",

"afterWait": "1000",

"target": "view",

"children": [{

"type": "loop",

"desc": "循环等待验证码到来",

"class": 1,

"debug": true,

"minRunTime": "0.5",

"maxRunTime": "0.5",

"children": [{

"type": "if",

"desc": "条件处理",

"class": "2",

"debug": true,

"descendant": [],

"expr": "gCaptcha!=''",

"children": [{

"type": "paste",

"desc": "粘贴文本",

"class": 1,

"debug": true,

"data": "var-gCaptcha",

"tag": "id:verifyCodeInput-",

"root": "",

"descendant": [],

"mode": "set",

"duration": "500",

"maxStep": "5",

"beforeWait": "0",

"afterWait": "3000"

}, {

"type": "click",

"desc": "点击控件",

"class": 1,

"debug": true,

"tag": "txt:下一步-",

"mode": "1",

"root": "",

"failed": "",

"maxStep": "5",

"random": true,

"descendant": [],

"duration": "500",

"beforeWait": "0",

"afterWait": "3000"

}, {

"type": "break",

"desc": "跳出循环"

}],

"false": {

"type": "sleep",

"desc": "延时",

"debug": false,

"minTime": "1000",

"maxTime": "1000"

}

}]

}],

"false": {}

}],

"false": {}

}]

}],

"false": {

"type": "log",

"desc": "日志",

"debug": false,

"logType": "log",

"info": ["string-if 为false"]

}

}

}]

}, {

"type": "back2Page",

"desc": "返回页面",

"debug": false,

"tag": "txt:任务中心|txt:我的金币-",

"root": "",

"backFirst": "true",

"failed": "exitTaskPopupWithAD",

"duration": "500",

"maxStep": "5",

"beforeWait": "0",

"afterWait": "0"

}],

"false": {}

}

}],

"false": {

"type": "scroll",

"desc": "滚动处理",

"class": 1,

"debug": true,

"direction": "up",

"minDistance": "0.9",

"maxDistance": "0.98",

"minScrollCount": "1",

"maxScrollCount": "1",

"minDuration": "500",

"maxDuration": "500",

"beforeWait": "1000",

"afterWait": "1000"

}

}],

"family": [],

"false": {}

}, {

"type": "click",

"desc": "开宝箱领金币",

"class": "4",

"debug": true,

"descendant": [],

"duration": "500",

"beforeWait": "0",

"afterWait": "3000",

"x": "rsScreenWidth,-,100",

"y": "rsScreenHeight,-,130",

"unit": "px",

"children": [{

"type": "click",

"desc": "点击控件",

"class": 1,

"debug": true,

"tag": "txt^:看视频最高得-",

"mode": "2",

"root": "",

"failed": "",

"maxStep": "5",

"random": true,

"descendant": [],

"duration": "500",

"beforeWait": "0",

"afterWait": "5000"

}]

}, {

"type": "back2Page",

"desc": "返回页面",

"debug": true,

"tag": "id:com.kuaishou.nebula:id/left_btn-",

"root": "",

"backFirst": "true",

"failed": "exitTaskPopupWithAD",

"duration": "500",

"maxStep": "8",

"beforeWait": "0",

"afterWait": "0"

}],

"family": [],

"false": {}

}, {

"type": "group",

"desc": "看视频",

"debug": false,

"children": [{

"type": "loop",

"desc": "循环看视频",

"class": "2",

"debug": true,

"minCount": "8",

"maxCount": "12",

"children": [{

"type": "loop",

"desc": "看视频",

"class": 1,

"debug": false,

"minRunTime": "0.1",

"maxRunTime": "0.2",

"children": [{

"type": "findView",

"desc": "查找控件",

"debug": false,

"root": "",

"failed": "exitPopupWithAD",

"duration": "500",

"maxStep": "5",

"beforeWait": "0",

"afterWait": "0",

"dealItems": [{

"key": "txt:我要吐槽-",

"value": {

"type": "click",

"desc": "点击控件",

"class": "2",

"debug": false,

"mode": "2",

"random": true,

"descendant": [-1, -1, -1, 0],

"beforeWait": "0",

"afterWait": "1000",

"target": "view"

}

}]

}]

}, {

"type": "scroll",

"desc": "滚动处理",

"class": 1,

"debug": false,

"direction": "up",

"minDistance": "0.95",

"maxDistance": "0.99",

"minScrollCount": "1",

"maxScrollCount": "1",

"minDuration": "500",

"maxDuration": "500",

"beforeWait": "1000",

"afterWait": "1000"

}]

}, {

"type": "back2Page",

"desc": "返回页面",

"debug": true,

"tag": "id:com.kuaishou.nebula:id/left_btn-",

"root": "",

"backFirst": "false",

"failed": "exitPopupWithAD",

"duration": "500",

"maxStep": "5",

"beforeWait": "0",

"afterWait": "0"

}]

}],

"autoExit": true

}, {

"type": "popup",

"name": "exitPopupWithAD",

"false": ["exitPopup", "dealAD"],

"desc": "弹窗处理",

"debug": false

}, {

"type": "popup",

"name": "exitTaskPopupWithAD",

"desc": "弹窗处理",

"debug": false,

"false": ["dealAD"],

"dealItems": [{

"key": "txt:是否关注该主播?-",

"value": {

"type": "click",

"desc": "点击控件",

"class": 1,

"debug": false,

"tag": "txt:退出-",

"mode": "2",

"root": "",

"failed": "",

"maxStep": "5",

"random": true,

"descendant": [],

"duration": "500",

"beforeWait": "0",

"afterWait": "1000"

}

}, {

"key": "txt:继续观看-",

"value": {

"type": "click",

"desc": "点击控件",

"class": "2",

"debug": false,

"mode": "2",

"random": true,

"descendant": [],

"beforeWait": "0",

"afterWait": "1000",

"target": "view"

}

}, {

"key": "txt:打开签到提醒-",

"value": {

"type": "click",

"desc": "点击控件",

"class": "2",

"debug": true,

"mode": "3",

"random": true,

"descendant": [-1, 0],

"beforeWait": "0",

"afterWait": "1000",

"target": "view"

}

}]

}, {

"type": "popup",

"name": "exitPopup",

"desc": "弹窗处理",

"debug": false,

"false": [],

"dealItems": []

}, {

"type": "ad",

"desc": "广告处理",

"debug": true,

"enterWindowList": ["com.yxcorp.gifshow.ad.award.AwardVideoPlayActivity"],

"enterTags": "txt$:后可领取奖励-",

"breakTags": "txt:任务中心-",

"dealItems": [{

"key": "id:com.kuaishou.nebula:id/video_close_icon|txt:继续观看-",

"value": {

"type": "click",

"desc": "点击控件",

"class": "2",

"debug": false,

"mode": "2",

"random": true,

"descendant": [],

"beforeWait": "0",

"afterWait": "1000",

"target": "view"

}

}]

}, {

"type": "windowChange",

"desc": "窗口变化处理",

"debug": true

}, {

"type": "notification",

"children": [],

"desc": "通知处理",

"debug": true,

"dealItems": [{

"key": "验证码",

"value": {

"type": "custom",

"desc": "自定义模块",

"debug": true,

"code": "var data = item.fetchInteger();\nif (data.length > 0) {\ngCaptcha=data[0]+'';\nconsole.log('captcha:'+gCaptcha);\n}\n"

}

}],

"packageName": "",

"declareVar": false,

"stopMainTaskBeforeStart": false,

"exeDefaultTaskWhenFinished": false

}],

"desc": "根模块",

"debug": false

}

编译运行

  1. 在网页端「移动端」/「自动构建脚本」点击右边的“编译”按钮,将自动构建编译成与自动构建名称相同的js脚本。
  2. 在网页端「移动端」/「移动端脚本」点击右边的“发布”按钮发布脚本。
  3. 在网页端「移动端」/「移动端脚本」点击右边的“运行”按钮,并选择设备,然后执行。
<think>好的,用户现在需要配置青龙面板来运行快手极速的自动化脚本。首先,我得回忆一下青龙面板的基本安装步骤,可能需要参考之前提供的引用内容。引用[1]里提到了用Docker命令安装青龙面板,所以应该先确保用户已经正确安装了Docker和青龙面板,端口是5700。 然后,用户需要快手极速的脚本。常见的情况是,这些脚本可能托管在GitHub或者Gitee上,比如大佬的仓库,比如chavyleung或者其他的开源项目。需要指导用户如何添加订阅链接到青龙面板中。订阅链接一般是一个json文件,里面包含脚本的更新地址。 接下来是配置环境变量。快手极速通常需要登录的cookie或者其他认证信息。用户需要在青龙面板的环境变量里添加这些,比如KS_TOKEN,可能还需要手机号之类的变量。要提醒用户注意安全,不要泄露这些信息。 另外,引用[2]提到了Ninja,可能涉及到Cookie的维护。如果用户使用Ninja来管理Cookie,可能需要配置相关的前端界面,或者通过手机扫码获取Cookie。这部分可能需要详细说明步骤,比如进入Ninja界面,如何操作手机APP来获取所需的token。 还有定时任务的设置,快手极速的任务可能需要每天定时执行,所以需要指导用户在脚本配置里添加正确的cron表达式,比如0 8 * * *表示每天早上8点运行。 可能会遇到的问题包括脚本无法正常运行,这时候需要检查日志。常见的问题可能是环境变量未正确设置,或者依赖缺失。比如Python脚本可能需要安装requests库,用户可能需要通过青龙面板的依赖管理来安装。 最后,安全问题很重要,要提醒用户不要使用不明来源的脚本,避免泄露隐私信息。可能还需要提到如果遇到验证码或者设备封禁的情况,如何处理,比如更换设备信息或者调整执行频率。 总结步骤应该是:安装青龙面板→添加脚本仓库→配置环境变量→设置定时任务→测试运行→处理依赖和错误。同时提供常见问题解答,比如如何获取Cookie,脚本不执行怎么办等等。</think>### 青龙面板配置快手极速自动化脚本教程 #### 一、环境准备 1. 安装Docker容器环境(若未安装): ```bash curl -fsSL https://get.docker.com | bash ``` 2. 部署青龙面板容器(端口默认5700)[^1]: ```bash docker run -dit --name qinglong -p 5700:5700 whyour/qinglong:latest ``` #### 二、脚本仓库配置 1. 访问青龙面板管理界面:`http://服务器IP:5700` 2. 进入「订阅管理」→「新建订阅」 - 名称:快手极速脚本 - 类型:公开仓库 - 链接:`https://github.com/仓库作者/仓库名/raw/main/快手极速.json`(需替换为实际脚本仓库地址) 3. 点击「确定」后自动同步脚本 #### 三、环境变量设置 1. 进入「环境变量」→「新建变量」 - 名称:`KS_PHONE` - 值:`注册手机号` 2. 新建变量(Cookie获取方式见第四部分): - 名称:`KS_TOKEN` - 值:`从快手APP获取的登录凭证` #### 四、Cookie获取方法 1. **安卓抓包方案**: - 使用HttpCanary等工具捕获`user/open/v1`接口请求头 - 提取`Cookie`字段中的`kuaishou.api_st`参数 2. **Ninja方案**[^2]: - 在OpenWrt软路由中配置Ninja服务 - 通过浏览器访问Ninja界面扫码获取Cookie #### 五、定时任务配置 1. 进入「定时任务」→「新建任务」 - 名称:快手每日任务 - 命令:`task 脚本路径/ks.js` - 定时规则:`0 8 * * *`(每天8点执行) 2. 手动执行测试脚本: ```bash docker exec -it qinglong bash ql task 脚本路径/ks.js ``` #### 六、常见问题排查 | 问题现象 | 解决方案 | |---------|----------| | 脚本执行报错`Missing dependency` | 在「依赖管理」安装Node.js/Python依赖 | | Cookie失效 | 重新通过Ninja扫码更新环境变量 | | 任务未自动执行 | 检查定时规则语法,推荐使用[crontab生成器](https://crontab-generator.org/) |
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值