Create a Douyin Bot that Auto‑Likes Using Face Detection – Step‑by‑Step Guide
Learn how to set up and run an open‑source Douyin automation bot that captures screenshots, uses a face‑recognition API to evaluate beauty thresholds, and automatically likes, follows, and replies to attractive videos, with detailed installation steps and configuration tips for OnePlus 5 resolution.
Repository
https://github.com/wangshub/Douyin-Bot
Features
Automatic page scrolling
Beauty score detection
Face recognition
Automatic like
Automatic follow
Randomized anti‑ban actions
Automatic reply
Operation Principle
Launch the Douyin app and navigate to the main feed.
Capture a screenshot of the current screen and compress the image so its size is under 1 MB.
Send the compressed screenshot to a face‑recognition API.
Parse the JSON response, extract the face region, and compute a beauty score.
If the computed score exceeds the constant BEAUTY_THRESHOLD, the bot automatically issues a like and a follow for that video.
Proceed to the next page and repeat the process.
Installation and Execution
Clone the repository:
git clone https://github.com/wangshub/Douyin-Bot.gitEnter the project directory: cd Douyin-Bot Install required Python packages: pip install -r requirements.txt Run the bot script:
python douyin-bot.pyConfiguration Note
The current implementation is calibrated for a OnePlus 5 device with a 1920×1080 screen resolution. For devices with different resolutions, edit the configuration files located in the config/ directory to adjust screen‑size parameters.
Face Cropping Example
License
MIT
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.
Programmer DD
A tinkering programmer and author of "Spring Cloud Microservices in Action"
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.
