当前位置:网站首页>简书自动阅读
简书自动阅读
2022-07-02 18:39:00 【51CTO】
前几天在网上看到一个用autojs实现的自动阅读简书文章的js代码感觉很有意思,于是搞了一把,虽然搞定了,但是熟悉autojs开发环境、调试摸索api等花了我不少时间。今天我来使用一个完全不同的方法,不编程直接通过配置参数来实现,给大家提供一个参数,实现步骤如下:
创建自动构建
进入冰狐智能辅助 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" }] }, { "type": "enterApp", "desc": "进入APP", "packageName": "com.jianshu.haruki", "findTag": "txt:首页-", "autoInstall": false, "autoUpdate": false, "wait": "1000", "failed": "exitPopup", "maxStep": "30", "children": [{ "type": "clickAndEnter", "desc": "点击进入推荐页面", "class": 1, "clickTag": "txt:首页-", "checkTag": "txt:推荐-", "root": "", "mode": "2", "failed": "exitPopup", "descendant": [], "duration": "500", "maxStep": "8", "beforeWait": "0", "afterWait": "0", "children": [{ "type": "traverse", "desc": "遍历“推荐”并随机选择一个标签", "class": 1, "tag": "txt:最新-", "failed": "exitPopup", "descendant": [-1, -1], "startIndex": "2", "lastIndex": "2", "retryCount": "0", "randomPick": true, "children": [{ "type": "click", "desc": "点击选中的标签", "class": "2", "mode": "2", "descendant": [], "beforeWait": "0", "afterWait": "3000", "target": "item" }, { "type": "loop", "desc": "阅读标签下的多篇文章", "class": "2", "minCount": "1", "maxCount": "4", "children": [{ "type": "scroll", "desc": "随机滚动页面", "class": 1, "direction": "up", "minDistance": "0.8", "maxDistance": "0.98", "minDuration": "500", "maxDuration": "500", "beforeWait": "2000", "afterWait": "3000", "minScrollCount": "1", "maxScrollCount": "3" }, { "type": "traverse", "desc": "从该页面中随机挑选一篇文章", "class": 1, "tag": "id:com.jianshu.haruki:id/recyclerView-", "failed": "exitPopup", "descendant": [], "startIndex": "0", "lastIndex": "0", "retryCount": "0", "randomPick": true, "clickable": true, "children": [{ "type": "clickAndEnter", "desc": "点击进入并阅读文章", "class": "2", "checkTag": "txt:说点什么吧-", "mode": "2", "failed": "", "descendant": [], "duration": "500", "maxStep": "5", "beforeWait": "0", "afterWait": "0", "target": "item", "children": [{ "type": "loop", "desc": "随机阅读一段时间", "class": 1, "minRunTime": "0.5", "maxRunTime": "1.2", "children": [{ "type": "scroll", "desc": "随机滚动文章阅读", "class": 1, "direction": "up", "minDistance": "0.05", "maxDistance": "0.5", "minDuration": "450", "maxDuration": "600", "beforeWait": "0", "afterWait": "1000", "minScrollCount": "1", "maxScrollCount": "1" }, { "type": "break", "desc": "若阅读完成则跳出循环", "class": "2", "breakTag": "txt:赞赏支持|txt:赞-", "failed": "exitPopup" }] }, { "type": "back2Page", "desc": "返回首页", "tag": "txt:推荐-", "root": "", "backFirst": "true", "failed": "", "duration": "500", "maxStep": "5", "beforeWait": "0", "afterWait": "0", "false": {} }], "false": { "type": "back2Page", "desc": "返回页面", "tag": "txt:推荐-", "root": "", "backFirst": "false", "failed": "", "duration": "500", "maxStep": "5", "beforeWait": "0", "afterWait": "0" } }, { "type": "break", "desc": "跳出循环", "class": 1 }] }] }, { "type": "break", "desc": "跳出循环", "class": 1 }], "clickable": false }], "false": { "type": "log", "desc": "日志", "logType": "warning", "info": ["string-进入推荐失败"] } }], "false": { "type": "log", "desc": "日志", "logType": "error", "info": ["string-进入app失败"] } }, { "type": "popup", "name": "exitPopupWithAD", "false": ["exitPopup", "dealAD"] }, { "type": "popup", "name": "exitPopup", "desc": "弹窗处理", "false": [], "dealItems": [{ "key": "txt^:开启系统通知|txt:新版本安装包已经准备好-", "value": { "type": "click", "desc": "点击控件", "class": 1, "tag": "txt:取消-", "mode": "2", "root": "", "failed": "", "maxStep": "5", "descendant": [], "duration": "500", "beforeWait": "0", "afterWait": "1000" } }, { "key": "txt:立即阅读-", "value": { "type": "traverse", "desc": "遍历容器", "class": "2", "descendant": [-1], "startIndex": "0", "lastIndex": "0", "randomPick": false, "clickable": true, "target": "view", "children": [{ "type": "click", "desc": "点击控件", "class": "2", "mode": "2", "descendant": [], "beforeWait": "0", "afterWait": "1000", "target": "item" }, { "type": "break", "desc": "跳出循环" }] } }, { "key": "txt:你还没有关注文章作者,是否同时关注TA-", "value": { "type": "prob", "desc": "概率", "prob": "80", "children": [{ "type": "click", "desc": "点击控件", "class": 1, "tag": "txt:关注作者-", "mode": "2", "root": "", "failed": "", "maxStep": "5", "descendant": [], "duration": "500", "beforeWait": "0", "afterWait": "1000" }], "false": { "type": "click", "desc": "点击控件", "class": 1, "tag": "txt:取消-", "mode": "2", "root": "", "failed": "", "maxStep": "5", "descendant": [], "duration": "500", "beforeWait": "0", "afterWait": "1000" } } }, { "key": "txt:以后再说|txt:不用打开|txt:我知道了|txt:知道了|id:com.jianshu.haruki:id/dialog_lucky_prize_close|txt:放弃下载|txt:看视频奖励翻倍-", "value": { "type": "click", "desc": "点击控件", "class": "2", "mode": "1", "descendant": [], "beforeWait": "0", "afterWait": "1000", "target": "view" } }] }, { "type": "ad", "desc": "广告处理", "enterWindowList": ["com.qq.e.ads.RewardvideoPortraitADActivity"], "enterTags": "", "breakTags": "txt:恭喜获得奖励-" }, { "type": "windowChange" }, { "type": "notification", "children": [] }], "desc": "根模块" }
编译运行
- 在网页端「移动端」/「自动构建脚本」点击右边的“编译”按钮,将自动构建编译成与自动构建名称相同的js脚本。
- 在网页端「移动端」/「移动端脚本」点击右边的“发布”按钮发布脚本。
- 在网页端「移动端」/「移动端脚本」点击右边的“运行”按钮,并选择设备,然后执行。
边栏推荐
- 数据降维——因子分析
- 2022.7.1-----leetcode.241
- 开发固定资产管理系统,开发固定资产管理系统用什么语音
- 电脑使用哪个录制视频软件比较好
- 搭建主从模式集群redis
- IEDA refactor的用法
- 虚拟机初始化脚本, 虚拟机相互免秘钥
- Is there any security guarantee for the ranking of stock and securities companies
- AcWing 1137. 选择最佳线路 题解(最短路)
- Web2.0 giants have deployed VC, and tiger Dao VC may become a shortcut to Web3
猜你喜欢

Codeworks 5 questions per day (1700 average) - day 4

定了,就是它!

数据降维——主成分分析

Refactoring: improving the design of existing code (Part 1)

Chic Lang: completely solve the problem of markdown pictures - no need to upload pictures - no need to network - there is no lack of pictures forwarded to others
![[error record] problems related to the installation of the shuttle environment (follow-up error handling after executing the shuttle doctor command)](/img/c1/a00425f2e1824a50644c8fbb15fe38.jpg)
[error record] problems related to the installation of the shuttle environment (follow-up error handling after executing the shuttle doctor command)

Web2.0的巨头纷纷布局VC,Tiger DAO VC或成抵达Web3捷径

安装单机redis详细教程
Bubble sort array

Markdown基础语法
随机推荐
Virtual machine initialization script, virtual machine mutual secret key free
AcWing 1137. 选择最佳线路 题解(最短路)
PHP非对称加密方法私钥及公钥加密解密的方法
潇洒郎:彻底解决Markdown图片问题——无需上传图片——无需网络——转发给他人图片无缺失
[pytorch learning notes] tensor
教程篇(5.0) 10. 故障排除 * FortiEDR * Fortinet 网络安全专家 NSE 5
AcWing 343. 排序 题解(floyd性质实现传递闭包)
C file input operation
IEDA refactor的用法
搭建主从模式集群redis
Gmapping code analysis [easy to understand]
How to print mybats log plug-in using XML file
Tutorial (5.0) 10 Troubleshooting * fortiedr * Fortinet network security expert NSE 5
《重构:改善既有代码的设计》读书笔记(上)
使用xml文件打印mybaties-log插件的方式
metric_ Logger urination
MySQL
Web2.0的巨头纷纷布局VC,Tiger DAO VC或成抵达Web3捷径
When converting from list to map, if a certain attribute may cause key duplication and exceptions, you can set the way to deal with this duplication
多态的理解以及作用