{"id":13414821,"url":"https://github.com/wangshub/Douyin-Bot","last_synced_at":"2025-03-14T22:32:20.447Z","repository":{"id":38206541,"uuid":"135050068","full_name":"wangshub/Douyin-Bot","owner":"wangshub","description":"😍 Python 抖音机器人，论如何在抖音上找到漂亮小姐姐？ ","archived":false,"fork":false,"pushed_at":"2023-10-03T21:08:46.000Z","size":40701,"stargazers_count":9300,"open_issues_count":63,"forks_count":1897,"subscribers_count":300,"default_branch":"master","last_synced_at":"2024-10-15T03:42:33.737Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://zhuanlan.zhihu.com/p/37365182","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/wangshub.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}},"created_at":"2018-05-27T13:43:12.000Z","updated_at":"2024-10-15T01:37:32.000Z","dependencies_parsed_at":"2023-02-08T12:02:10.280Z","dependency_job_id":"f0ed0b3b-5298-4fb2-a7fb-8ba2015ac2b9","html_url":"https://github.com/wangshub/Douyin-Bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangshub%2FDouyin-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangshub%2FDouyin-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangshub%2FDouyin-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wangshub%2FDouyin-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wangshub","download_url":"https://codeload.github.com/wangshub/Douyin-Bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221513931,"owners_count":16835746,"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":[],"created_at":"2024-07-30T21:00:37.306Z","updated_at":"2025-03-14T22:32:20.441Z","avatar_url":"https://github.com/wangshub.png","language":"Python","funding_links":[],"categories":["Python","创意 \u003ca name=\"idea\"\u003e\u003c/a\u003e","Crawler"],"sub_categories":[],"readme":"# 如何在抖音上找到漂亮小姐姐----抖音机器人\n\n[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badge/) [![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)      \n\n最近沉迷于抖音无法自拔，常常花好几个小时在抖音**漂亮小姐姐**身上。\n\n本着**高效、直接**地找到漂亮小姐姐的核心思想，我用 Python + ADB 做了一个 Python 抖音机器人 Douyin-Bot。\n\n\u003cimg src=\"./screenshot/demo.gif\" title=\"Logo\"  width=\"300\"\u003e \u003cimg src=\"./screenshot/auto_reply.gif\" title=\"Logo\"  width=\"300\"\u003e\n    \n##  特性\n\n- [x] **自动翻页**\n- [x] **颜值检测**\n- [x] **人脸识别**\n- [x] **自动点赞**\n- [x] **自动关注**\n- [x] 随机防 Ban\n- [x] **自动评论**\n\n## 原理\n\n- 打开《抖音短视频》APP，进入主界面\n- 获取手机截图，并对截图进行压缩 (Size \u003c 1MB)；\n- 请求 [人脸识别 API](http://ai.qq.com/)；\n- 解析返回的人脸 Json 信息，对人脸检测切割；\n- 当颜值大于门限值 `BEAUTY_THRESHOLD`时，点赞并关注；\n- 下一页，返回第一步；\n\n## 使用教程\n\n- Python版本：3.0及以上\n- 相关软件工具安装和使用步骤请参考 [wechat_jump_game](https://github.com/wangshub/wechat_jump_game) 和 [Android 操作步骤](https://github.com/wangshub/wechat_jump_game/wiki/Android-%E5%92%8C-iOS-%E6%93%8D%E4%BD%9C%E6%AD%A5%E9%AA%A4)\n- 在 [ai.qq.com](https://ai.qq.com) 免费申请 `AppKey` 和 `AppID`\n1. 获取源码：`git clone https://github.com/wangshub/Douyin-Bot.git`\n2. 进入源码目录： `cd Douyin-Bot`\n3. 安装依赖： `pip install -r requirements.txt`\n4. 运行程序：`python douyin-bot.py`\n5. [自动评论](https://zhuanlan.zhihu.com/p/57242891)(可选)：`python3 douyin-bot.py --reply`\n\n## 注意\n\n- 目前暂时只适配了 一加5(1920x1080 分辨率)，如果手机不是该分辨率，请修改 `config/` 文件夹下面的配置文件；\n- `config.json`配置文件参考：\n    - `center_point`: 屏幕中心点`(x, y)`，区域范围 `rx, ry`\n    - `follow_bottom`: 关注按钮位置`(x, y)`，区域范围 `rx, ry`\n    - `star_bottom`: 点赞按钮位置`(x, y)`，区域范围 `rx, ry`\n    \n\n## 脸部截取\n\n![](./screenshot/faces.png)\n\n## LICENSE\n\nMIT\n\n欢迎 Star 和 Fork ~\n\n如果你有什么问题请提 Issue，或者关注我的微信公众号留言，我都会一一解答\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"screenshot/qrcode.jpg\" title=\"Logo\" width=\"150\"\u003e\n\u003c/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangshub%2FDouyin-Bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangshub%2FDouyin-Bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangshub%2FDouyin-Bot/lists"}