最近刷短视频视频比较火爆,大多数都是通过手工来刷视频获取,会浪费大家很多时间,今天我来使用一个完全不同的方法,不编程直接通过配置参数来实现刷视频,实现步骤如下:
进入冰狐智能辅助https://aznfz.com,在网页端「移动端」/「自动构建脚本」中新建一个“构建”。
通过元数据可以直接复制一个完全一样的构建。在上一步创建的构建右边点击“元数据”按钮,将如下元数据拷贝进入并保存,此时系统会根据元数据自动完成模块参数配置。
{
"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"
}],
"desc": "变量声明"
}, {
"type": "enterApp",
"desc": "进入APP",
"packageName": "com.qiyi.video.lite",
"findTag": "txt:首页|txt:电视剧-",
"autoInstall": false,
"autoUpdate": false,
"wait": "1000",
"failed": "exitPopup",
"maxStep": "30",
"children": [{
"type": "clickAndEnter",
"desc": "进入赚钱任务频道",
"class": "1",
"checkTag": "txt:活动规则|txt^:再赚-",
"click": "true",
"failed": "exitPopupWithAD",
"descendant": [],
"duration": "500",
"maxStep": "8",
"beforeWait": "0",
"afterWait": "0",
"children": [{
"type": "log",
"desc": "日志",
"log_type": "log",
"info": ["string-进入任务"],
"logType": "log"
}, {
"type": "searchAndLoopDeal",
"desc": "赚钱任务",
"root": "",
"retryCount": "0",
"failed": "exitPopupWithAD",
"duration": "500",
"maxStep": "8",
"beforeWait": "0",
"afterWait": "0",
"dealItems": [{
"key": "txt:提现#$&1",
"value": {
"type": "clickAndEnter",
"desc": "点击进入页面",
"class": "2",
"debug": false,
"family": [],
"descendant": [],
"checkTag": "txt:提现兑换#",
"mode": "2",
"failed": "",
"duration": "500",
"maxStep": "5",
"beforeWait": "0",
"afterWait": "0",
"target": "view",
"children": [{
"type": "clickAndEnter",
"desc": "点击进入页面",
"class": 1,
"debug": false,
"clickTag": "txt:立即提现#",
"root": "",
"clickWidgetIndex": "0",
"family": [],
"descendant": [],
"checkTag": "txt:确认提现#",
"mode": "2",
"failed": "",
"duration": "500",
"maxStep": "5",
"beforeWait": "0",
"afterWait": "0",
"children": [{
"type": "click",
"desc": "点击",
"class": "2",
"debug": false,
"family": [],
"descendant": [],
"mode": "2",
"longClick": false,
"random": true,
"beforeWait": "0",
"afterWait": "2000",
"target": "view"
}]
}, {
"type": "back2Page",
"desc": "返回页面",
"debug": false,
"tag": "txt:活动规则#",
"root": "",
"backFirst": "false",
"failed": "",
"duration": "500",
"maxStep": "5",
"beforeWait": "0",
"afterWait": "0"
}]
}
}, {
"key": "txt^:免费抽大奖$&1",
"value": {
"type": "clickAndEnter",
"desc": "进入大转盘",
"class": "2",
"checkTag": "txt:幸运大转盘-",
"click": "true",
"failed": "exitPopupWithAD",
"descendant": [],
"duration": "500",
"maxStep": "5",
"beforeWait": "0",
"afterWait": "3000",
"target": "view",
"children": [{
"type": "searchAndLoopDeal",
"desc": "抽奖",
"root": "",
"failed": "exitPopupWithAD",
"duration": "500",
"maxStep": "8",
"beforeWait": "0",
"afterWait": "0",
"dealItems": [{
"key": "txt^:恭喜到账-traverse_one_by_one$&30",
"value": {
"type": "traverse",
"desc": "退出到账",
"class": "2",
"descendant": [-1, -1],
"startIndex": "0",
"lastIndex": "0",
"target": "view",
"children": [{
"type": "click",
"desc": "点击控件",
"class": "2",
"debug": false,
"mode": "2",
"random": true,
"descendant": [],
"beforeWait": "0",
"afterWait": "1000",
"target": "item"
}],
"randomPick": false,
"clickable": true,
"debug": false,
"className": ""
}
}, {
"key": "txt$:后再来-$&1",
"value": {
"type": "break",
"desc": "跳出循环",
"class": 1
}
}, {
"key": "txt^:lottery-list-$&20",
"value": {
"type": "custom",
"desc": "抽奖",
"code": "var txt = view.parent.parent.parent[2][0].text;\nconsole.log('txt:' + txt);\nvar num = parseInt(txt);\nif (num > 0) {\ngestureClick((view.left + view.right) / 2, (view.top + view.bottom) / 2, {afterWait: 8000});\nconsole.log('点击开始抽奖');\n} else {\nconsole.log('抽奖结束');\nbreak;\n}",
"debug": false
}
}],
"retryCount": "0",
"debug": false
}, {
"type": "back2Page",
"desc": "返回页面",
"returnVar": "",
"tag": "txt:我的|txt:电视剧|txt:活动规则-",
"root": "",
"backFirst": "true",
"failed": "exitPopupWithAD",
"duration": "500",
"maxStep": "5",
"beforeWait": "0",
"afterWait": "0"
}],
"mode": "2",
"debug": true
}
}, {
"key": "txt$:每日可领|txt:开宝箱领金币|txt:领取-$&1",
"value": {
"type": "click",
"desc": "点击控件",
"class": "2",
"click": "true",
"descendant": [],
"beforeWait": "0",
"afterWait": "3000",
"target": "view",
"mode": "2",
"debug": false,
"random": true
}
}, {
"key": "txt^:再赚-$&10",
"value": {
"type": "click",
"desc": "点击控件",
"class": "2",
"mode": "1",
"descendant": [],
"beforeWait": "0",
"afterWait": "3000",
"target": "view"
}
}],
"false": {
"type": "scroll",
"desc": "滚动处理",
"class": 1,
"direction": "up",
"minDistance": "0.98",
"maxDistance": "0.98",
"minDuration": "500",
"maxDuration": "500",
"beforeWait": "0",
"afterWait": "0"
},
"debug": true
}, {
"type": "back2Page",
"desc": "返回页面",
"returnVar": "",
"tag": "txt:首页|txt:电视剧|txt:活动规则-",
"root": "",
"backFirst": "false",
"failed": "exitPopupWithAD",
"duration": "500",
"maxStep": "5",
"beforeWait": "0",
"afterWait": "0",
"debug": true
}, {
"type": "log",
"desc": "日志",
"log_type": "log",
"info": ["string-任务处理完成"]
}],
"false": {
"type": "log",
"desc": "日志",
"log_type": "error",
"info": ["string-进入任务失败"]
},
"mode": "2",
"clickTag": "id:android:id/content-",
"root": "",
"debug": true,
"clickWidgetIndex": "0",
"family": [1, 3, 3]
}, {
"type": "clickAndEnter",
"desc": "进入电视剧频道",
"class": 1,
"clickTag": "id:android:id/content-",
"root": "",
"checkTag": "txt:电视剧-",
"click": "true",
"failed": "exitPopupWithAD",
"descendant": [0, 2, 0],
"duration": "500",
"maxStep": "8",
"beforeWait": "0",
"afterWait": "0",
"children": [{
"type": "log",
"desc": "日志",
"log_type": "log",
"info": ["string-进入看电视剧"]
}, {
"type": "loop",
"desc": "在一段时间内观看多个电视剧",
"class": 1,
"minRunTime": "0.8",
"maxRunTime": "1",
"children": [{
"type": "scroll",
"desc": "滚动容器寻找喜欢的电视剧",
"class": 1,
"direction": "up",
"minDistance": "0.98",
"maxDistance": "0.98",
"minDuration": "500",
"maxDuration": "500",
"beforeWait": "2000",
"afterWait": "1000",
"minScrollCount": "1",
"maxScrollCount": "1"
}, {
"type": "traverse",
"desc": "遍历电视剧容器",
"class": "1",
"tag": "cn:androidx.recyclerview.widget.RecyclerView-",
"failed": "exitPopupWithAD",
"descendant": [],
"startIndex": "0",
"lastIndex": "0",
"retryCount": "3",
"randomPick": true,
"children": [{
"type": "clickAndEnter",
"desc": "点击进入电视剧",
"class": "2",
"checkTag": "txt*:/|txt:金蛋奖励-",
"click": "true",
"failed": "exitPopup",
"descendant": [],
"duration": "500",
"maxStep": "5",
"beforeWait": "0",
"afterWait": "0",
"target": "item",
"children": [{
"type": "loop",
"desc": "看电视剧",
"class": 1,
"minRunTime": "0.2",
"maxRunTime": "1",
"children": [{
"type": "click",
"desc": "关闭广告",
"class": 1,
"tag": "txt:关闭此广告-",
"root": "",
"failed": "exitPopup",
"maxStep": "5",
"click": "true",
"descendant": [],
"duration": "500",
"beforeWait": "0",
"afterWait": "0",
"mode": "2"
}, {
"type": "break",
"desc": "若电视结束就跳出循环",
"class": "2",
"breakTag": "txt:完成-",
"failed": "exitPopup"
}]
}, {
"type": "log",
"desc": "日志",
"log_type": "log",
"info": ["string-开始back到首页"]
}, {
"type": "back2Page",
"desc": "返回首页",
"returnVar": "",
"tag": "txt:首页|txt:电视剧-",
"root": "",
"backFirst": "true",
"failed": "exitPopup",
"duration": "500",
"maxStep": "5",
"beforeWait": "0",
"afterWait": "0"
}],
"false": {
"type": "log",
"desc": "日志",
"log_type": "log",
"info": ["string-进入电视剧失败"]
},
"mode": "1"
}],
"clickable": false
}, {
"type": "click",
"desc": "点击领金币",
"class": 1,
"tag": "txt:领金币|txt^:领-",
"root": "",
"failed": "",
"maxStep": "5",
"mode": "2",
"descendant": [],
"duration": "500",
"beforeWait": "0",
"afterWait": "0"
}]
}],
"false": {
"type": "log",
"desc": "日志",
"log_type": "error",
"info": ["string-进入电视剧频道失败"],
"logType": "error"
},
"mode": "2",
"debug": false,
"clickWidgetIndex": "0",
"family": []
}, {
"type": "clickAndEnter",
"desc": "进入短视频频道",
"class": 1,
"clickTag": "id:android:id/content-",
"root": "",
"checkTag": "txt:推荐-",
"click": "true",
"failed": "exitPopupWithAD",
"descendant": [0, 2, 1],
"duration": "500",
"maxStep": "8",
"beforeWait": "0",
"afterWait": "0",
"children": [{
"type": "log",
"desc": "日志",
"log_type": "log",
"info": ["string-进入短视频"]
}, {
"type": "loop",
"desc": "观看多个视频",
"class": "2",
"minCount": "5",
"maxCount": "10",
"children": [{
"type": "loop",
"desc": "观看短视频",
"class": 1,
"minRunTime": "0.1",
"maxRunTime": "0.6"
}, {
"type": "scroll",
"desc": "滚动屏幕看下一个短视频",
"class": 1,
"direction": "up",
"minDistance": "0.98",
"maxDistance": "0.98",
"minDuration": "500",
"maxDuration": "500",
"beforeWait": "0",
"afterWait": "0",
"minScrollCount": "1",
"maxScrollCount": "1"
}]
}],
"false": {
"type": "log",
"desc": "日志",
"log_type": "error",
"info": ["string-进入短视频失败"],
"logType": "error"
},
"mode": "2",
"debug": false,
"clickWidgetIndex": "0",
"family": []
}],
"false": {
"type": "log",
"desc": "日志",
"logType": "error",
"info": ["string-进入app失败"]
},
"debug": false,
"autoExit": false
}, {
"type": "popup",
"desc": "弹窗处理",
"name": "exitPopupWithAD",
"false": ["exitPopup", "dealAD"]
}, {
"type": "popup",
"desc": "弹窗处理",
"name": "exitPopup",
"false": [],
"dealItems": [{
"key": "txt:暂不升级|txt:我知道了-",
"value": {
"type": "click",
"desc": "点击控件",
"class": "2",
"click": "true",
"descendant": [],
"beforeWait": "0",
"afterWait": "0",
"target": "view",
"mode": "2"
}
}, {
"key": "txt:猜你想看-",
"value": {
"type": "click",
"desc": "点击控件",
"class": 1,
"tag": "txt:取消-",
"root": "",
"failed": "",
"maxStep": "5",
"click": "true",
"descendant": [],
"duration": "500",
"beforeWait": "0",
"afterWait": "0",
"mode": "2"
}
}, {
"key": "txt:恭喜获得-",
"value": {
"type": "click",
"desc": "点击控件",
"class": "2",
"click": "true",
"descendant": [-1, 4],
"beforeWait": "0",
"afterWait": "0",
"target": "view",
"mode": "2"
}
}, {
"key": "txt^:恭喜到账-",
"value": {
"type": "click",
"desc": "点击控件",
"class": "2",
"click": "true",
"descendant": [-1, 2, 0],
"beforeWait": "0",
"afterWait": "0",
"target": "view",
"mode": "2"
}
}, {
"key": "txt:继续赚钱-",
"value": {
"type": "click",
"desc": "点击控件",
"class": "2",
"click": "true",
"descendant": [-1, -1, -1, 1],
"beforeWait": "0",
"afterWait": "0",
"target": "view",
"mode": "2",
"debug": false,
"random": true
}
}, {
"key": "txt^:打开日历提醒-",
"value": {
"type": "click",
"desc": "点击控件",
"class": "2",
"click": "false",
"descendant": [-1, 7],
"beforeWait": "0",
"afterWait": "0",
"target": "view",
"mode": "2"
}
}],
"debug": false
}, {
"type": "ad",
"desc": "广告处理",
"enterWindowList": [],
"enterTags": "txt*:s后可领取奖励-",
"breakTags": "txt:开宝箱|txt:我的|txt^:再赚|txt:继续赚钱|txt:幸运大转盘|txt:活动规则-",
"dealItems": [{
"key": "txt:关闭-",
"value": {
"type": "click",
"desc": "点击控件",
"class": "2",
"click": "true",
"descendant": [],
"beforeWait": "0",
"afterWait": "0",
"target": "view",
"mode": "3"
}
}, {
"key": "txt:恭喜获得-",
"value": {
"type": "click",
"desc": "点击控件",
"class": "2",
"click": "true",
"descendant": [-1, 4],
"beforeWait": "0",
"afterWait": "0",
"target": "view",
"mode": "2"
}
}, {
"key": "txt:继续观看视频可获得奖励-",
"value": {
"type": "click",
"desc": "点击控件",
"class": 1,
"tag": "txt:继续观看-",
"root": "",
"failed": "",
"maxStep": "5",
"click": "true",
"descendant": [],
"duration": "500",
"beforeWait": "0",
"afterWait": "0",
"mode": "2"
}
}, {
"key": "cn:android.widget.ImageView-find_all|clickable",
"value": {
"type": "traverse",
"desc": "遍历容器",
"class": "2",
"descendant": [],
"startIndex": "0",
"lastIndex": "0",
"target": "viewContainer",
"children": [{
"type": "if",
"desc": "条件处理",
"class": 1,
"target": "item",
"descendant": [],
"conditions": "position@#width,==,height::%$width,>,::40%$width,<,::80%$top,<,::100%$right,>,rsScreenWidth:-:20@#",
"children": [{
"type": "click",
"desc": "点击控件",
"class": "2",
"mode": "2",
"descendant": [],
"beforeWait": "0",
"afterWait": "1000",
"target": "item"
}, {
"type": "break",
"desc": "跳出循环"
}]
}],
"randomPick": false,
"clickable": false,
"className": ""
}
}],
"debug": true
}, {
"type": "windowChange",
"desc": "窗口变化处理",
"dealItems": [{
"key": "com.mcto.sspsdk.ssp.activity.QyDetailPageActivityNew",
"value": {
"type": "back",
"desc": "按返回键",
"count": "1",
"duration": "1000",
"beforeWait": "0",
"afterWait": "0"
}
}]
}, {
"type": "notification",
"children": []
}],
"desc": "根模块",
"debug": false
}