当前位置:网站首页>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 .
边栏推荐
- How to avoid duplicate data in gaobingfa?
- Golang并发编程——goroutine、channel、sync
- Introduction of Ethernet PHY layer chip lan8720a
- KT148A语音芯片ic的用户端自己更换语音的方法,上位机
- SQLite 3.39.0 发布,支持右外连接和全外连接
- 2022.7.1-----leetcode. two hundred and forty-one
- 程序猿入门攻略(十二)——数据的存储
- 自動生成VGG圖像注釋文件
- AcWing 383. Sightseeing problem solution (shortest circuit)
- Introduction to mongodb chapter 03 basic concepts of mongodb
猜你喜欢

Watchful pioneer world outlook Architecture - (how does a good game come from)

Istio1.12:安装和快速入门

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

KT148A语音芯片使用说明、硬件、以及协议、以及常见问题,和参考代码

RPD product: super power squad nanny strategy

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

Zabbix5 client installation and configuration

KT148A语音芯片ic的软件参考代码C语言,一线串口

数据湖(十二):Spark3.1.2与Iceberg0.12.1整合

Génération automatique de fichiers d'annotation d'images vgg
随机推荐
AcWing 1129. Heat wave solution (shortest path SPFA)
AcWing 342. Road and route problem solving (shortest path, topological sorting)
Golang:[]byte to string
Py's interpret: a detailed introduction to interpret, installation, and case application
MySQL function
Dictionaries
MySQL
Educational Codeforces Round 129 (Rated for Div. 2) 补题题解
AcWing 1125. Cattle travel problem solution (shortest path, diameter)
使用 Cheat Engine 修改 Kingdom Rush 中的金钱、生命、星
From 20s to 500ms, I used these three methods
浏览器缓存机制概述
Educational codeforces round 129 (rated for Div. 2) supplementary problem solution
多态的理解以及作用
KT148A语音芯片ic的硬件设计注意事项
《代码整洁之道》读书笔记
Getting started with typescript
453-atoi函数的实现
Embedded (PLD) series, epf10k50rc240-3n programmable logic device
Refactoring: improving the design of existing code (Part 1)