当前位置:网站首页>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 .
边栏推荐
- Correspondence between pytoch version, CUDA version and graphics card driver version
- Solution: vs2017 cannot open the source file stdio h main. H header document [easy to understand]
- Usage of ieda refactor
- MySQL function
- rxjs Observable 自定义 Operator 的开发技巧
- 《重构:改善既有代码的设计》读书笔记(下)
- 思考变量引起的巨大变化
- End to end object detection with transformers (Detr) paper reading and understanding
- 嵌入式(PLD) 系列,EPF10K50RC240-3N 可编程逻辑器件
- Bubble sort array
猜你喜欢
高并发下如何避免产生重复数据?
字典
Automatically generate VGg image annotation file
嵌入式(PLD) 系列,EPF10K50RC240-3N 可编程逻辑器件
ShardingSphere-JDBC5.1.2版本关于SELECT LAST_INSERT_ID()本人发现还是存在路由问题
SQLite 3.39.0 release supports right external connection and all external connection
Dictionaries
Watchful pioneer world outlook Architecture - (how does a good game come from)
编写完10万行代码,我发了篇长文吐槽Rust
450-深信服面经1
随机推荐
嵌入式(PLD) 系列,EPF10K50RC240-3N 可编程逻辑器件
AcWing 1125. 牛的旅行 题解(最短路、直径)
《MongoDB入门教程》第03篇 MongoDB基本概念
自動生成VGG圖像注釋文件
AcWing 1131. Saving Private Ryan (the shortest way)
Windows2008r2 installing php7.4.30 requires localsystem to start the application pool, otherwise 500 error fastcgi process exits unexpectedly
Common problems and description of kt148a voice chip IC development
c语言里怎么设立优先级,细说C语言优先级
Is there any security guarantee for the ranking of stock and securities companies
Implementation of 452 strcpy, strcat, StrCmp, strstr, strchr
AcWing 342. 道路与航线 题解 (最短路、拓扑排序)
451-memcpy、memmove、memset的实现
SQLite 3.39.0 发布,支持右外连接和全外连接
基于SSM实现网上购物商城系统
《代码整洁之道》读书笔记
KT148A语音芯片ic的用户端自己更换语音的方法,上位机
字典
Golang concurrent programming goroutine, channel, sync
数据湖(十二):Spark3.1.2与Iceberg0.12.1整合
Kt148a voice chip IC user end self replacement voice method, upper computer