Giter VIP home page Giter VIP logo

douyin-bot's Introduction

如何在抖音上找到漂亮小姐姐----抖音机器人

Open Source Love MIT Licence

最近沉迷于抖音无法自拔,常常花好几个小时在抖音漂亮小姐姐身上。

本着高效、直接地找到漂亮小姐姐的核心**,我用 Python + ADB 做了一个 Python 抖音机器人 Douyin-Bot。

特性

  • 自动翻页
  • 颜值检测
  • 人脸识别
  • 自动点赞
  • 自动关注
  • 随机防 Ban
  • 自动评论

原理

  • 打开《抖音短视频》APP,进入主界面
  • 获取手机截图,并对截图进行压缩 (Size < 1MB);
  • 请求 人脸识别 API
  • 解析返回的人脸 Json 信息,对人脸检测切割;
  • 当颜值大于门限值 BEAUTY_THRESHOLD时,点赞并关注;
  • 下一页,返回第一步;

使用教程

  1. 获取源码:git clone https://github.com/wangshub/Douyin-Bot.git
  2. 进入源码目录: cd Douyin-Bot
  3. 安装依赖: pip install -r requirements.txt
  4. 运行程序:python douyin-bot.py
  5. 自动评论(可选):python3 douyin-bot.py --reply

注意

  • 目前暂时只适配了 一加5(1920x1080 分辨率),如果手机不是该分辨率,请修改 config/ 文件夹下面的配置文件;
  • config.json配置文件参考:
    • center_point: 屏幕中心点(x, y),区域范围 rx, ry
    • follow_bottom: 关注按钮位置(x, y),区域范围 rx, ry
    • star_bottom: 点赞按钮位置(x, y),区域范围 rx, ry

脸部截取

LICENSE

MIT

欢迎 Star 和 Fork ~

如果你有什么问题请提 Issue,或者关注我的微信公众号留言,我都会一一解答

douyin-bot's People

Contributors

androset avatar jiluhu avatar privatez avatar wangshub avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.