当前位置:网站首页>基于微信小程序开发的我最在行的小游戏
基于微信小程序开发的我最在行的小游戏
2022-07-07 22:53:00 【biyezuopinvip】
资源下载地址:https://download.csdn.net/download/sheziqiong/85949477
资源下载地址:https://download.csdn.net/download/sheziqiong/85949477
1.准备
- Node.js 9.x 以上
- MongoDB
- 安装依赖
npm i
2.功能
抓请求之前,请完全删除小程序,重新搜索小程序名字进入。因为你之前登录过,后续抓不到登录请求了
2.1爬取题库
爬题思路:不断进行好友对战获取题目,随意提交答案会返回正确答案,存入数据库,重复的忽略
分别使用两个微信号登录游戏,抓登录的请求 https://puzzle-gateway.zaih.com/pauthp/jwt
复制返回的 access_token 和 account_id,填入 src/crawl.js 中
执行 npm run crawl 开始自动爬取
如果出现带 leave 单词的提示,说明上一局是异常退出的。只要关掉脚本,重新再运行就好了。
爬题需要一定的时间,也可以直接导入我爬好的题库 MongoShell BSON(.json)(12.2k 个题目,持续更新)
数据库名为 wzzh,导入命令,注意你的文件路径
mongoimport -d wzzh -c questions --file ~/Downloads/questions.json --jsonArray --drop
2.2答题辅助
用你要答题的号登录游戏,抓登录的请求 https://puzzle-gateway.zaih.com/pauthp/jwt
复制返回的 access_token 和 account_id,填入 src/robot.js 中
再修改其中的 theme 为你要答题的分类索引
执行 npm run robot 开始智能答题,答题过程是全自动的
如果本题不在题库里,会调用 game-helper/answer 搜索答案
自动提交搜索结果数最多的答案(提高胜率),同时会自动将本题正确答案记录到题库中
你只需要关注终端打印的信息即可,如果有报错,请提 issue 反馈给我们
3.截图




资源下载地址:https://download.csdn.net/download/sheziqiong/85949477
资源下载地址:https://download.csdn.net/download/sheziqiong/85949477
边栏推荐
- QT establish signal slots between different classes and transfer parameters
- 【obs】Impossible to find entrance point CreateDirect3D11DeviceFromDXGIDevice
- 【愚公系列】2022年7月 Go教学课程 006-自动推导类型和输入输出
- Cause analysis and solution of too laggy page of [test interview questions]
- Codeforces Round #804 (Div. 2)(A~D)
- ReentrantLock 公平锁源码 第0篇
- Reentrantlock fair lock source code Chapter 0
- 8道经典C语言指针笔试题解析
- 赞!idea 如何单窗口打开多个项目?
- Operating system principle --- summary of interview knowledge points
猜你喜欢

接口测试要测试什么?

How does starfish OS enable the value of SFO in the fourth phase of SFO destruction?

QT adds resource files, adds icons for qaction, establishes signal slot functions, and implements

【GO记录】从零开始GO语言——用GO语言做一个示波器(一)GO语言基础

fabulous! How does idea open multiple projects in a single window?

1293_FreeRTOS中xTaskResumeAll()接口的实现分析

【笔记】常见组合滤波电路

Two small problems in creating user registration interface

DNS series (I): why does the updated DNS record not take effect?

v-for遍历元素样式失效
随机推荐
Installation and configuration of sublime Text3
某马旅游网站开发(登录注册退出功能的实现)
What if the testing process is not perfect and the development is not active?
Coindesk comments on the decentralization process of the wave field: let people see the future of the Internet
A brief history of information by James Gleick
Summary of weidongshan phase II course content
华为交换机S5735S-L24T4S-QA2无法telnet远程访问
华泰证券官方网站开户安全吗?
大数据开源项目,一站式全自动化全生命周期运维管家ChengYing(承影)走向何方?
[Yugong series] go teaching course 006 in July 2022 - automatic derivation of types and input and output
搭建ADG过程中复制报错 RMAN-03009 ORA-03113
服务器防御DDOS的方法,杭州高防IP段103.219.39.x
玩转Sonar
The difference between get and post
爬虫实战(八):爬表情包
从Starfish OS持续对SFO的通缩消耗,长远看SFO的价值
Development of a horse tourism website (realization of login, registration and exit function)
What is load balancing? How does DNS achieve load balancing?
Tencent security released the white paper on BOT Management | interpreting BOT attacks and exploring ways to protect
[programming questions] [scratch Level 2] March 2019 garbage classification