当前位置:网站首页>Automatic reading of simple books
Automatic reading of simple books
2022-07-02 19:42:00 【51CTO】
A few days ago, I saw a website with autojs Realize the automatic reading of simple books and articles js The code feels very interesting , So I made a , Although it's done , But familiar with autojs development environment 、 Debugging exploration api It took me a lot of time . Today I will use a completely different method , It is realized directly by configuring parameters without programming , Give you a parameter , The implementation steps are as follows :
Create auto build
Enter ice fox intelligent assistance aznfz.com, On the web side 「 Mobile 」/「 Build scripts automatically 」 New China …
adopt “ Metadata ” Construct auto build
An exact build can be copied directly through metadata . On the right side of the build created in the previous step, click “ Metadata ” Button , Copy and save the following metadata , At this time, the system will automatically complete the module parameter configuration according to the metadata .
{ "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": " Get into APP", "packageName": "com.jianshu.haruki", "findTag": "txt: home page -", "autoInstall": false, "autoUpdate": false, "wait": "1000", "failed": "exitPopup", "maxStep": "30", "children": [{ "type": "clickAndEnter", "desc": " Click to enter the recommendation page ", "class": 1, "clickTag": "txt: home page -", "checkTag": "txt: recommend -", "root": "", "mode": "2", "failed": "exitPopup", "descendant": [], "duration": "500", "maxStep": "8", "beforeWait": "0", "afterWait": "0", "children": [{ "type": "traverse", "desc": " Traverse “ recommend ” And randomly select a label ", "class": 1, "tag": "txt: newest -", "failed": "exitPopup", "descendant": [-1, -1], "startIndex": "2", "lastIndex": "2", "retryCount": "0", "randomPick": true, "children": [{ "type": "click", "desc": " Click on the selected tab ", "class": "2", "mode": "2", "descendant": [], "beforeWait": "0", "afterWait": "3000", "target": "item" }, { "type": "loop", "desc": " Read many articles under the label ", "class": "2", "minCount": "1", "maxCount": "4", "children": [{ "type": "scroll", "desc": " Randomly scroll the page ", "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": " Select an article randomly from this page ", "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": " Click to enter and read the article ", "class": "2", "checkTag": "txt: Say something -", "mode": "2", "failed": "", "descendant": [], "duration": "500", "maxStep": "5", "beforeWait": "0", "afterWait": "0", "target": "item", "children": [{ "type": "loop", "desc": " Read randomly for a period of time ", "class": 1, "minRunTime": "0.5", "maxRunTime": "1.2", "children": [{ "type": "scroll", "desc": " Random scrolling article reading ", "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": " If the reading is finished, jump out of the cycle ", "class": "2", "breakTag": "txt: Appreciate the support |txt: Fabulous -", "failed": "exitPopup" }] }, { "type": "back2Page", "desc": " Back to the home page ", "tag": "txt: recommend -", "root": "", "backFirst": "true", "failed": "", "duration": "500", "maxStep": "5", "beforeWait": "0", "afterWait": "0", "false": {} }], "false": { "type": "back2Page", "desc": " Return page ", "tag": "txt: recommend -", "root": "", "backFirst": "false", "failed": "", "duration": "500", "maxStep": "5", "beforeWait": "0", "afterWait": "0" } }, { "type": "break", "desc": " Out of the loop ", "class": 1 }] }] }, { "type": "break", "desc": " Out of the loop ", "class": 1 }], "clickable": false }], "false": { "type": "log", "desc": " journal ", "logType": "warning", "info": ["string- Failed to enter recommendation "] } }], "false": { "type": "log", "desc": " journal ", "logType": "error", "info": ["string- Get into app Failure "] } }, { "type": "popup", "name": "exitPopupWithAD", "false": ["exitPopup", "dealAD"] }, { "type": "popup", "name": "exitPopup", "desc": " Pop ups ", "false": [], "dealItems": [{ "key": "txt^: Turn on system notification |txt: The new version of the installation package is ready -", "value": { "type": "click", "desc": " Click on the control ", "class": 1, "tag": "txt: Cancel -", "mode": "2", "root": "", "failed": "", "maxStep": "5", "descendant": [], "duration": "500", "beforeWait": "0", "afterWait": "1000" } }, { "key": "txt: Read now -", "value": { "type": "traverse", "desc": " Traversal container ", "class": "2", "descendant": [-1], "startIndex": "0", "lastIndex": "0", "randomPick": false, "clickable": true, "target": "view", "children": [{ "type": "click", "desc": " Click on the control ", "class": "2", "mode": "2", "descendant": [], "beforeWait": "0", "afterWait": "1000", "target": "item" }, { "type": "break", "desc": " Out of the loop " }] } }, { "key": "txt: You haven't followed the author of the article , Whether to pay attention to TA-", "value": { "type": "prob", "desc": " probability ", "prob": "80", "children": [{ "type": "click", "desc": " Click on the control ", "class": 1, "tag": "txt: Focus on the author -", "mode": "2", "root": "", "failed": "", "maxStep": "5", "descendant": [], "duration": "500", "beforeWait": "0", "afterWait": "1000" }], "false": { "type": "click", "desc": " Click on the control ", "class": 1, "tag": "txt: Cancel -", "mode": "2", "root": "", "failed": "", "maxStep": "5", "descendant": [], "duration": "500", "beforeWait": "0", "afterWait": "1000" } } }, { "key": "txt: later |txt: Don't open |txt: I got it! |txt: got it |id:com.jianshu.haruki:id/dialog_lucky_prize_close|txt: Abandon Download |txt: Watch the video and double the reward -", "value": { "type": "click", "desc": " Click on the control ", "class": "2", "mode": "1", "descendant": [], "beforeWait": "0", "afterWait": "1000", "target": "view" } }] }, { "type": "ad", "desc": " Advertising processing ", "enterWindowList": ["com.qq.e.ads.RewardvideoPortraitADActivity"], "enterTags": "", "breakTags": "txt: Congratulations on the award -" }, { "type": "windowChange" }, { "type": "notification", "children": [] }], "desc": " Root module " }
Compile operation
- On the web side 「 Mobile 」/「 Build scripts automatically 」 Click... On the right “ compile ” Button , Compile the auto build to the same name as the auto build js Script .
- On the web side 「 Mobile 」/「 Mobile script 」 Click... On the right “ Release ” Button release script .
- On the web side 「 Mobile 」/「 Mobile script 」 Click... On the right “ function ” Button , And select the device , And then execute .
边栏推荐
- 使用IDM下载百度网盘的文件(亲测有用)[通俗易懂]
- 定了,就是它!
- KT148A语音芯片ic的开发常见问题以及描述
- 嵌入式(PLD) 系列,EPF10K50RC240-3N 可编程逻辑器件
- Implementation of 452 strcpy, strcat, StrCmp, strstr, strchr
- 字典
- 良心总结!Jupyter Notebook 从小白到高手,保姆教程来了!
- AcWing 903. Expensive bride price solution (the shortest path - building map, Dijkstra)
- Zabbix5 client installation and configuration
- 从20s优化到500ms,我用了这三招
猜你喜欢

Detailed tutorial on installing stand-alone redis

IDEA编辑器去掉sql语句背景颜色SQL语句警告No data sources are configured to run this SQL...和SQL Dialect is Not Config

Quanzhi A33 uses mainline u-boot

程序猿入门攻略(十二)——数据的存储

KT148A语音芯片ic的硬件设计注意事项

Registration opportunity of autowiredannotationbeanpostprocessor under annotation development mode

搭建哨兵模式reids、redis从节点脱离哨兵集群

Yes, that's it!

《架构整洁之道》读书笔记(下)

rxjs Observable 自定义 Operator 的开发技巧
随机推荐
AcWing 1126. 最小花费 题解(最短路—dijkstra)
AcWing 1127. 香甜的黄油 题解(最短路—spfa)
451 implementation of memcpy, memmove and memset
Watchful pioneer world outlook Architecture - (how does a good game come from)
RPD出品:Superpower Squad 保姆级攻略
[pytorch learning notes] tensor
使用 Cheat Engine 修改 Kingdom Rush 中的金钱、生命、星
Educational Codeforces Round 129 (Rated for Div. 2) 补题题解
AcWing 342. 道路与航线 题解 (最短路、拓扑排序)
Windows2008R2 安装 PHP7.4.30 必须 LocalSystem 启动应用程序池 不然500错误 FastCGI 进程意外退出
What is the MySQL backup suffix_ MySQL backup restore
AcWing 903. Expensive bride price solution (the shortest path - building map, Dijkstra)
SQLite 3.39.0 release supports right external connection and all external connection
4274. Suffix expression - binary expression tree
Py之interpret:interpret的简介、安装、案例应用之详细攻略
AcWing 341. 最优贸易 题解 (最短路、dp)
股票证券公司排名,有安全保障吗
KT148A语音芯片ic的开发常见问题以及描述
MySQL function
蓝牙芯片ble是什么,以及该如何选型,后续技术发展的路径是什么