Python抖音自动点赞源码

Python抖音自动点赞源码

预览截图

应用介绍

详情内容

Python抖音自动点赞源码调用百度AI集合ADB写的一个抖音根据颜值点赞加关注的脚本,感觉有很多地方需要完善请大佬指正,手机连接上电脑,手机进入抖音之后运行

from aip import AipFace import base64 import os import time     """ 你的 APPID AK SK """ APP_ID = '' API_KEY = '' SECRET_KEY = ''   client = AipFace(APP_ID, API_KEY, SECRET_KEY)     def main():     time.sleep(3)     i = 0     while i < 3:         os.system('adb shell screencap -p /sdcard/screen.png')         os.system('adb pull /sdcard/screen.png')         beaut = beautySum()         if beaut == -1:             i = 3         if beaut > 70:             os.system('adb shell input tap 1000 1100')             os.system('adb shell input tap 700 700 && adb shell input tap 700 700')             print('点赞加关注')             i = 3         elif beaut > 60:             print('已点赞' + str(beaut))             os.system('adb shell input tap 700 700 && adb shell input tap 700 700')             i = 3         i = i + 1     os.system('adb shell input swipe 100 1500 100 750 100')     def beautySum():       with open("screen.png""rb"as f:  # 转为二进制格式         base64_data = base64.b64encode(f.read())  # 使用base64进行加密       image = str(base64_data, encoding='UTF-8')       imageType = "BASE64"       """ 调用人脸检测 """     options = {}     options["face_field"] = "age,beauty,gender"     options["max_face_num"] = 2     options["face_type"] = "LIVE"     options["liveness_control"] = "LOW"     a = client.detect(image, imageType, options)     if a['error_msg'] == 'pic not has face':         print('无脸')         return 0     else:         if a['result']['face_list'][0]['gender']['type'] == 'male':             print('男性跳过')             return -1         print(a['result']['face_list'][0]['beauty'])         return a['result']['face_list'][0]['beauty']     if __name__ == '__main__':     i = 0     while i < 3:         main()

点赞(0) 打赏

立即下载

温馨提示! 升级VIP会员免费下载,你当前 未登录
温馨提示! 你需要支付 ¥9.80 元后才可以下载

评论列表 共有 0 条评论

暂无评论

微信小程序

微信扫一扫体验

立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部