V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
easternslope
V2EX  ›  Python

Python 抖音机器人,论如何在抖音上找到漂亮小姐姐?

  easternslope ·
wangshub · 2018-05-28 09:06:12 +08:00 · 19914 次点击
这是一个创建于 2152 天前的主题,其中的信息可能已经有所发展或是发生改变。

原文链接https://zhuanlan.zhihu.com/p/37365182

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

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

特性

  • [x] 自动翻页
  • [x] 颜值检测
  • [x] 人脸识别
  • [x] 自动点赞
  • [x] 自动关注
  • [x] 随机防 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(1920x1080 分辨率),如果手机不是该分辨率,请修改 config/ 文件夹下面的配置文件;

脸部截取

LICENSE

MIT

源码地址

https://github.com/wangshub/Douyin-Bot

欢迎 Star 和 Fork ~

110 条回复    2019-05-04 11:13:05 +08:00
1  2  
irobot03
    101
irobot03  
   2018-05-29 13:48:05 +08:00
这个好 666 !
ujh353
    102
ujh353  
   2018-05-29 14:10:11 +08:00
这个机智了 ///
snw
    103
snw  
   2018-05-29 14:33:34 +08:00
benteke
    104
benteke  
   2018-05-29 16:35:57 +08:00
还能判断 yanzhi 高低,666
easternslope
    105
easternslope  
OP
   2018-05-29 17:13:55 +08:00
@snw 你妹的,吓到我了
zhou5320
    106
zhou5320  
   2018-05-30 14:18:03 +08:00
我只能给你双击 666
easternslope
    107
easternslope  
OP
   2018-05-31 13:38:53 +08:00
@snw 这个训练的感觉不是太好
mrhannibal87
    108
mrhannibal87  
   2018-05-31 15:28:54 +08:00
厉害,老铁双击 666 !
snw
    109
snw  
   2018-05-31 15:58:28 +08:00
@easternslope
表情 expression 好像只有一个维度,数值越大表示笑得越厉害,然后这张图的 expression 达到 100 就 undefined 了
shsf4
    110
shsf4  
   2019-05-04 11:13:05 +08:00
有创意
1  2  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1010 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms · UTC 19:22 · PVG 03:22 · LAX 12:22 · JFK 15:22
Developed with CodeLauncher
♥ Do have faith in what you're doing.