当前位置:网站首页>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 .
边栏推荐
- 安装单机redis详细教程
- PXE installation "recommended collection"
- 451-memcpy、memmove、memset的实现
- 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
- 数据湖(十二):Spark3.1.2与Iceberg0.12.1整合
- 《重构:改善既有代码的设计》读书笔记(上)
- 搭建哨兵模式reids、redis从节点脱离哨兵集群
- 450-深信服面经1
- Refactoring: improving the design of existing code (Part 1)
- MySQL function
猜你喜欢

Embedded (PLD) series, epf10k50rc240-3n programmable logic device

SQLite 3.39.0 发布,支持右外连接和全外连接

良心总结!Jupyter Notebook 从小白到高手,保姆教程来了!

Data dimensionality reduction principal component analysis

Reading notes of "the way to clean structure" (Part 2)

高并发下如何避免产生重复数据?

450-深信服面经1
冒泡排序数组

AcWing 903. 昂贵的聘礼 题解(最短路—建图、dijkstra)

JASMINER X4 1U深度拆解,揭开高效省电背后的秘密
随机推荐
mysql函数
Refactoring: improving the design of existing code (Part 1)
AcWing 343. 排序 题解(floyd性质实现传递闭包)
Watchful pioneer world outlook Architecture - (how does a good game come from)
使用 Cheat Engine 修改 Kingdom Rush 中的金钱、生命、星
SQLite 3.39.0 发布,支持右外连接和全外连接
Windows2008r2 installing php7.4.30 requires localsystem to start the application pool, otherwise 500 error fastcgi process exits unexpectedly
Reading notes of code neatness
Detailed tutorial on installing stand-alone redis
JS如何取整数
Mobile robot path planning: artificial potential field method [easy to understand]
数据湖(十二):Spark3.1.2与Iceberg0.12.1整合
多态的理解以及作用
AcWing 383. Sightseeing problem solution (shortest circuit)
Windows2008R2 安装 PHP7.4.30 必须 LocalSystem 启动应用程序池 不然500错误 FastCGI 进程意外退出
AcWing 903. 昂贵的聘礼 题解(最短路—建图、dijkstra)
AcWing 1125. Cattle travel problem solution (shortest path, diameter)
AcWing 1125. 牛的旅行 题解(最短路、直径)
AcWing 181. 回转游戏 题解(搜索—IDA*搜索)
第七章-类基础