{"id":13827258,"url":"https://github.com/sundy-li/wechat_brain","last_synced_at":"2025-07-09T03:31:39.774Z","repository":{"id":82322727,"uuid":"116639596","full_name":"sundy-li/wechat_brain","owner":"sundy-li","description":"知乎答题王(头脑王者)辅助工具","archived":true,"fork":false,"pushed_at":"2018-08-01T12:39:32.000Z","size":12962,"stargazers_count":424,"open_issues_count":58,"forks_count":108,"subscribers_count":23,"default_branch":"master","last_synced_at":"2024-08-05T09:16:09.121Z","etag":null,"topics":["brain","wechat"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sundy-li.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-08T06:37:51.000Z","updated_at":"2024-08-02T02:43:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"b4f212f0-a75b-416d-8077-f8256a71a9ac","html_url":"https://github.com/sundy-li/wechat_brain","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sundy-li%2Fwechat_brain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sundy-li%2Fwechat_brain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sundy-li%2Fwechat_brain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sundy-li%2Fwechat_brain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sundy-li","download_url":"https://codeload.github.com/sundy-li/wechat_brain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225481423,"owners_count":17481172,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["brain","wechat"],"created_at":"2024-08-04T09:01:52.847Z","updated_at":"2024-11-20T06:31:21.334Z","avatar_url":"https://github.com/sundy-li.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# wechat_brain\r\n知乎答题王（小程序头脑王者）辅助工具，上万题库。\r\n\r\n\r\n## 注意\r\n本工具仅供辅助娱乐。\r\n\r\n## 使用原理\r\n本工具运行在PC端,本质是一个http/https代理服务,对头脑王者的接口请求进行截获,主要作用有\r\n\r\n- 将题目和返回的标准答案存储于本地数据库中(questions.data文件)\r\n- 未匹配到标准答案情况下,自动请求搜索引擎,注解形式返回最佳概率结果\r\n\r\n## 使用步骤：\r\n本工具必须结合PC和手机共同使用,PC和手机须在同一个网络下\r\n\r\n#### 以下为PC电脑操作步骤\r\n\r\n- 运行主程序。运行方法（三选一)\r\n\t1. 方法一: 在[release](https://github.com/sundy-li/wechat_brain/releases)页面下载对应的操作系统执行文件, 解压后, 将最新版本的[questions.data](https://github.com/sundy-li/wechat_brain/blob/master/questions.data) 文件下载到同一个目录, 然后运行brain文件即可,命令行输入`./brain` \r\n\t2. 方法二: 安装go(\u003e=1.8)环境后, clone本repo源码到对应`$GOPATH/src/github.com/sundy-li/`下, 进入源码目录后,执行 `go run cmd/main.go`。\r\n\t3. 方法三: 使用docker命令运行：\r\n\t\t \r\n\r\n\t\t\tgit clone https://github.com/sundy-li/wechat_brain.git\r\n\t\t\tcd wechat_brain\r\n\t\t\tdocker build . -t wechat_brain\r\n\t\t\tdocker run -p 8998:8998 --name my_wechat_brain -d wechat_brain\r\n\r\n\t\t \r\n\r\n- 新版本(version \u003e= v0.18)加入了三种模式, 大家根据自己的需求选择模式运行\r\n\t1. 模式一: 默认模式, 修改了服务端返回的数据, 更加友好地提示正确答案, 运行方式如上所述: `./brain` 或者源码下执行 `go run cmd/main.go`\r\n\t2. 模式二: 隐身模式, 严格返回原始数据, 该模式可以防止作弊检测(客户端提交返回题目和服务端对比,模式一很容易被侦测出使用了作弊, 模式二避免了这类检测), 但该模式的缺点是降低了用户的体验,题目答案的提示只能在PC电脑上显示, 运行方式如上所述 `./brain -m 1` 或者源码下执行 `go run cmd/main.go -m 1`\r\n\t3. 模式三：自动模式 ** 注意此模式不同手机点击可能不稳定, 谨慎使用 ** 安卓机的自动刷题模式，需要将手机连接到电脑，并安装adb，且需要在开发者模式中打开usb调试，使用前请根据自身手机分辨率，调整spider文件clickProcess中的相应参数：手机屏幕中心x坐标，第一个选项中心y坐标，排位列表中最后一项中心y坐标。运行方式如上所述 `./brain -a 1 -m 1` 或者源码下执行 `go run cmd/main.go -a 1 -m 1`\r\n\r\n#### 以下为手机安装步骤\r\n\r\n- 设置手机代理。手机连接wifi后进行代理设置，代理IP为个人pc的内网ip地址,以及端口为8998,移动网络下可通过设置新建APN并在其中设置代理的方式实现。如：\r\n\u003cdiv align=\"center\"\u003e    \r\n \u003cimg src=\"./docs/3.jpeg\" width = \"300\" alt=\"配置代理\" align=center /\u003e\r\n\u003c/div\u003e \r\n\r\n- 安装证书。代理运行成功后,手机浏览器访问 `abc.com`安装证书,ios记得要信任证书 (或者将 `certs/goproxy.crt`传到手机, 点击安装证书), 很多朋友会卡在安装证书这一步骤, 不同手机会有不同的安装方式,建议大家多搜索下自己机型如何安装证书\r\n\r\n- 打开微信并启动头脑王者小程序。\r\n- 正确的答案将在小程序的选项中以【标准答案】或【数字】字样。如：  \r\n\u003cdiv align=\"center\"\u003e\r\n \u003cimg src=\"./docs/2.jpg\" width = \"300\" alt=\"自动提示标准答案\" align=center /\u003e\r\n \u003cimg src=\"./docs/1.jpg\" width = \"300\" alt=\"自动估算最可能的答案\" align=center /\u003e\r\n\u003c/div\u003e\r\n\r\n## 问题\r\n- [FAQ](https://github.com/sundy-li/wechat_brain/blob/master/docs/FAQ.md)\r\n- 感谢@HsiangHo, @milkmeowo 的贡献,修复了ios代理问题,更新新版本后,最好重新安装证书,重启微信进程\r\n  ~~~ios端由于goproxy无法代理websocket问题,暂时无法使用,希望大家可以来完善这个问题,见[这个issue](https://github.com/sundy-li/wechat_brain/issues/18)~~~\r\n\r\n## 合并题库\r\n- 请将questions.data文件压缩为zip文件后提交到[这里](https://github.com/sundy-li/wechat_brain/issues/17), 题库将会定期合并更新。\r\n\r\n## 支持\r\n维护开源软件需要花费很大时间精力,如果各位觉得本工具对你有帮助,可以请我喝杯咖啡支持一下\r\n\u003cdiv align=\"center\"\u003e    \r\n \u003cimg src=\"./docs/donate.jpg\" width = \"350\" align=center /\u003e\r\n\u003c/div\u003e\r\n\r\n\r\n## 轻松上王者效果图\r\n\r\n\u003cdiv align=\"center\"\u003e    \r\n \u003cimg src=\"./docs/4.jpeg\" width = \"300\" alt=\"自动提示标准答案\" align=center /\u003e\r\n\u003c/div\u003e\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsundy-li%2Fwechat_brain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsundy-li%2Fwechat_brain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsundy-li%2Fwechat_brain/lists"}