番茄免费小说

最近几年除了刷短视频比较火爆外,免费小说也越来越流行,尤其是网络免费小说,比如番茄免费小说,大多数情况下都是通过手工来刷小说,会浪费大家很多时间,今天我来使用一个完全不同的方法,不编程直接通过配置参数来实现刷小说,实现步骤如下:

创建自动构建

进入冰狐智能辅助​在网页端「移动端」/「自动构建脚本」中新建一个“构建”。

自动填充模块和参数

通过元数据可以直接复制一个完全一样的构建。在上一步创建的构建右边点击“元数据”按钮,将如下元数据拷贝进入并保存,此时系统会根据元数据自动完成模块参数配置。

  {
    "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",
        "debug": true,
        "packageName": "com.dragon.read",
        "findTag": "txt:书城-",
        "autoInstall": false,
        "autoUpdate": false,
        "wait": "1000",
        "failed": "",
        "maxStep": "30",
        "children": [{
            "type": "clickAndEnter",
            "desc": "点击进入任务",
            "class": 1,
            "debug": true,
            "clickTag": "txt:福利-",
            "checkTag": "txt^:现金金额|txt:登录查看余额|txt:加入书架-",
            "root": "",
            "mode": "2",
            "failed": "exitPopup",
            "descendant": [],
            "duration": "500",
            "maxStep": "15",
            "beforeWait": "0",
            "afterWait": "0",
            "children": [{
                "type": "searchAndLoopDeal",
                "desc": "搜索控件并循环处理",
                "debug": false,
                "root": "",
                "retryCount": "0",
                "failed": "",
                "duration": "500",
                "maxStep": "8",
                "beforeWait": "0",
                "afterWait": "0",
                "dealItems": [{
                    "key": "txt:立即签到|txt^:看视频最高再领-$&1",
                    "value": {
                        "type": "click",
                        "desc": "点击控件",
                        "class": "2",
                        "debug": false,
                        "mode": "2",
                        "random": true,
                        "descendant": [],
                        "beforeWait": "0",
                        "afterWait": "1000",
                        "target": "view"
                    }
                }, {
                    "key": "txt:立即领取-$&1",
                    "value": {
                        "type": "click",
                        "desc": "点击控件"
                    }
                }, {
                    "key": "txt:开宝箱得金币@cn:android.view.View-$&1",
                    "value": {
                        "type": "click",
                        "desc": "点击控件",
                        "class": "2",
                        "debug": true,
                        "mode": "2",
                        "random": true,
                        "descendant": [],
                        "beforeWait": "0",
                        "afterWait": "1000",
                        "target": ""
                    }
                }]
            }]
        }]
    }, {
        "type": "popup",
        "name": "exitPopupWithAD",
        "false": ["exitPopup", "dealAD"]
    }, {
        "type": "popup",
        "name": "exitPopup"
    }, {
        "type": "ad",
        "desc": "广告处理",
        "debug": "on",
        "enterWindowList": ["com.bytedance.sdk.openadsdk.activity.base.TTRewardExpressVideoActivity", "com.ss.android.excitingvideo.ExcitingVideoActivity"],
        "enterTags": "id:com.dragon.read:id/vangogh_video_view|id:com.dragon.read:id/video_view|id:com.dragon.read:id/mimo_reward_root_view|id:com.dragon.read:id/tt_reward_root|txt^:奖励将于|txt*:获得奖励|txt$:后可领取奖励|txt$:后可领取金币|txt$:后可领金币-",
        "breakTags": "txt:福利|id:com.dragon.read:id/ari-",
        "dealItems": [{
            "key": "txt^:参与互动|txt^:浏览页面-",
            "value": {
                "type": "scroll",
                "desc": "滚动处理",
                "class": 1,
                "debug": false,
                "direction": "up",
                "minDistance": "0.8",
                "maxDistance": "0.8",
                "minScrollCount": "2",
                "maxScrollCount": "2",
                "minDuration": "500",
                "maxDuration": "500",
                "beforeWait": "1000",
                "afterWait": "1000"
            }
        }, {
            "key": "txt*:要继续观看视频-",
            "value": {
                "type": "click",
                "desc": "点击控件",
                "class": "2",
                "debug": false,
                "mode": "1",
                "random": true,
                "descendant": [-1, 2],
                "beforeWait": "0",
                "afterWait": "3000",
                "target": "view"
            }
        }, {
            "key": "txt:禁止-",
            "value": {
                "type": "click",
                "desc": "点击控件",
                "class": "2",
                "debug": false,
                "mode": "1",
                "random": true,
                "descendant": [],
                "beforeWait": "0",
                "afterWait": "1000",
                "target": "view"
            }
        }]
    }, {
        "type": "windowChange"
    }, {
        "type": "notification",
        "children": []
    }],
    "desc": "根模块",
    "debug": true
}

编译运行

  1. 在网页端「移动端」/「自动构建脚本」点击右边的“编译”按钮,将自动构建编译成与自动构建名称相同的js脚本。
  2. 在网页端「移动端」/「移动端脚本」点击右边的“发布”按钮发布脚本。
  3. 在网页端「移动端」/「移动端脚本」点击右边的“运行”按钮,并选择设备,然后执行。
爬虫(Web Crawler)是一种自动化程序,用于从互联网上收集信息。其主要功能是访问网页、提取数据并存储,以便后续分析或展示。爬虫通常由搜索引擎、数据挖掘工具、监测系统等应用于网络数据抓取的场景。 爬虫的工作流程包括以下几个关键步骤: URL收集: 爬虫从一个或多个初始URL开始,递归或迭代地发现新的URL,构建一个URL队列。这些URL可以通过链接分析、站点地图、搜索引擎等方式获取。 请求网页: 爬虫使用HTTP或其他协议向目标URL发起请求,获取网页的HTML内容。这通常通过HTTP请求库实现,如Python中的Requests库。 解析内容: 爬虫对获取的HTML进行解析,提取有用的信息。常用的解析工具有正则表达式、XPath、Beautiful Soup等。这些工具帮助爬虫定位和提取目标数据,如文本、图片、链接等。 数据存储: 爬虫将提取的数据存储到数据库、文件或其他存储介质中,以备后续分析或展示。常用的存储形式包括关系型数据库、NoSQL数据库、JSON文件等。 遵守规则: 为避免对网站造成过大负担或触发反爬虫机制,爬虫需要遵守网站的robots.txt协议,限制访问频率和深度,并模拟人类访问行为,如设置User-Agent。 反爬虫应对: 由于爬虫的存在,一些网站采取了反爬虫措施,如验证码、IP封锁等。爬虫工程师需要设计相应的策略来应对这些挑战。 爬虫在各个领域都有广泛的应用,包括搜索引擎索引、数据挖掘、价格监测、新闻聚合等。然而,使用爬虫需要遵守法律和伦理规范,尊重网站的使用政策,并确保对被访问网站的服务器负责。
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值