{"id":21177680,"url":"https://github.com/iflycn/hero","last_synced_at":"2025-07-09T22:30:51.288Z","repository":{"id":28258195,"uuid":"117362775","full_name":"iflycn/hero","owner":"iflycn","description":"百万英雄答题助手 - 兼容全部答题 APP","archived":false,"fork":false,"pushed_at":"2022-12-07T23:49:37.000Z","size":76,"stargazers_count":20,"open_issues_count":3,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-05T08:01:39.662Z","etag":null,"topics":["adb","android","crawler","orc","python3"],"latest_commit_sha":null,"homepage":"https://github.com/iflycn/hero","language":"Python","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/iflycn.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}},"created_at":"2018-01-13T17:18:28.000Z","updated_at":"2023-06-27T07:25:34.000Z","dependencies_parsed_at":"2023-01-14T08:29:47.259Z","dependency_job_id":null,"html_url":"https://github.com/iflycn/hero","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iflycn/hero","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iflycn%2Fhero","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iflycn%2Fhero/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iflycn%2Fhero/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iflycn%2Fhero/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iflycn","download_url":"https://codeload.github.com/iflycn/hero/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iflycn%2Fhero/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264504574,"owners_count":23618825,"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":["adb","android","crawler","orc","python3"],"created_at":"2024-11-20T17:16:55.954Z","updated_at":"2025-07-09T22:30:51.048Z","avatar_url":"https://github.com/iflycn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 百万英雄答题助手\n使用 `Python` 开发的答题助手，自动显示答案，支持 Android 手机或电脑模拟器。内置适配 14 款 APP：百万英雄、芝士超人、冲顶大会、百万赢家、黄金十秒、全民答题、非答不可、蘑菇大富翁、百万黄金屋、极速挑战、小米有乐、百万文豪、疯狂夺金、头脑王者，你甚至可以自定义截图坐标——如果你的 APP 不在适配列表或出现截图错误。\n\n## 号外\n* 电脑小白怎么办？加入 QQ 群 `696211910` 或邮件联系作者 `gito@foxmail.com`，免费获取打包好的程序，把右手食指放在鼠标左键上双击就可以运行:)\n* 全自动版本的程序已完成，速度提升3倍，无需连接手机、无需额外安装任何依赖软件。该版本适配百万英雄（支持个性化题目）、冲顶大会、百万赢家、芝士超人、黄金十秒、知识英雄、点题成金、疯狂夺金，暂无开源计划，详情发邮件询问。\n* 更多答题 APP 适配中，如果你愿意帮助完善程序，可以[提起 issues](https://github.com/iflycn/hero/issues) 或将未适配 APP 的问题完整截图发邮件给作者，注明 APP 名称，作者会优先进行适配。\n\n## 运行效果截图\n![](https://github.com/iflycn/hero/blob/master/cmd.png)\n\n## 如何工作\n1. 从手机屏幕获取截图并上传到电脑\n2. 裁切出截图中的问题和答案部分，使用百度 ORC 识别文字\n3. 抓取问答网站数据，统计每个答案在数据中出现的次数\n4. 如果问答网站数据无法匹配，则使用问题+答案为关键字，抓取关键字在百度搜索中出现的次数\n5. 根据统计出的数据计算权重并给出建议回答\n\n## 如何使用（Windows 系统）\n### 安装 ADB\n1. 访问 [ADB Shell](http://adbshell.com/downloads) 下载 `ADB Kits`，解压到硬盘目录，例如 `D:\\ADB`\n2. 进入系统属性，点击环境变量，在弹出窗口的系统变量中找到 Path 并双击，在弹出窗口的变量值最后加上 `;D:\\adb`\n### 设置你的手机\n3. 开启开发者选项，打开 USB 调试，小米手机一并打开 USB 调试（安全设置）\n4. 使用数据线连接手机，等待系统自动安装驱动完成\n### 下载程序\n5. 下载[百万英雄答题助手压缩包](https://github.com/iflycn/hero/archive/master.zip)，解压到硬盘目录，例如 `D:\\hero-master`\n6. 修改文件 `config.ini` 中的 `APP_ID`、`API_KEY`、`SECRET_KEY` 为你自己的，申请地址：[百度 AI 开放平台](http://ai.baidu.com/tech/ocr/general)\n7. 如果你使用的 APP 未适配，可以修改文件 `config.ini` 中的 `ANSWER_SIZE` 字段，其意义为选项数；修改 `X1`、`Y1`、`X2`、`Y2` 字段，其意义分别为左边距、上边距、右边距和下边距\n### 安装 Python\n8. 从 [Python 官网](https://www.python.org/downloads)下载安装 `python3.6.4`\n9. 电脑运行 `CMD`，输入命令 `pip3 install -r D:\\hero-master\\requirements.txt`，等待下载依赖包并安装完成\n10. 如果下载依赖包过程中出错，重新输入命令 `pip3 install -r D:\\hero-master\\requirements.txt` 直到下载成功\n### 开始使用\n11. 手机进入百万英雄界面\n12. 电脑运行 `CMD`，依次输入命令 `D:`、`cd hero-master`、`python main.py`，根据程序提示操作即可\n\n## 参考项目\n- [wuditken/MillionHeroes](https://github.com/wuditken/MillionHeroes)\n- [smileboywtu/MillionHeroAssistant](https://github.com/smileboywtu/MillionHeroAssistant)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiflycn%2Fhero","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiflycn%2Fhero","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiflycn%2Fhero/lists"}