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.

Programmer DD
Programmer DD
Programmer DD
Create a Douyin Bot that Auto‑Likes Using Face Detection – Step‑by‑Step Guide

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.git

Enter the project directory: cd Douyin-Bot Install required Python packages: pip install -r requirements.txt Run the bot script:

python douyin-bot.py

Configuration 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

Face cropping illustration
Face cropping illustration

License

MIT

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

PythonAutomationface recognitionBotDouyin
Programmer DD
Written by

Programmer DD

A tinkering programmer and author of "Spring Cloud Microservices in Action"

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.