How to Build a Python Douyin Bot with Face Detection and Auto‑Like Features
This guide explains how to create a Python‑based Douyin automation bot that captures screenshots, uses Tencent’s face‑recognition API to evaluate beauty thresholds, and automatically likes, follows, and replies to attractive videos, including setup steps, required tools, and configuration details.
Obsessed with Douyin, I built a Python + ADB Douyin bot to efficiently find and interact with attractive videos.
Source Code
https://github.com/wangshub/Douyin-Bot
Features
Automatic page turning
Beauty detection
Face recognition
Auto like
Auto follow
Random anti‑ban
Auto reply
Principle
Open the Douyin app and go to the main screen.
Capture a screenshot of the phone and compress it to less than 1 MB.
Send the screenshot to the Tencent Face Recognition API (http://ai.qq.com/).
Parse the returned JSON, crop the face region.
If the beauty score exceeds the threshold (BEAUTY_THRESHOLD), like and follow the video.
Proceed to the next page and repeat.
Usage Tutorial
Install required tools; see related instructions for WeChat jump game and Android/iOS steps.
Apply for a free AppKey and AppID at ai.qq.com.
Clone the repository: git clone https://github.com/wangshub/Douyin-Bot.git Enter the directory: cd Douyin-Bot Install dependencies: pip install -r requirements.txt Run the program:
python douyin-bot.pyNote
Currently only supports OnePlus 5 (1920×1080). For other resolutions, modify the configuration files under config/.
Face Capture Example
License
MIT
Source link: https://github.com/wangshub/Douyin-Bot
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
MaGe Linux Operations
Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
