python自动刷抖音
import osimport timeimport random# 打开appprint('打开app.')os.system('adb shell am start -n com.ss.android.ugc.aweme.lite/com.ss.android.ugc.aweme.main.MainActivity')print('等待7s')time.sleep(8)# 点击来赚钱print
·
代码:
import os
import time
import random
# 打开app
print('打开app.')
os.system('adb shell am start -n com.ss.android.ugc.aweme.lite/com.ss.android.ugc.aweme.main.MainActivity')
print('等待7s')
time.sleep(8)
# 点击来赚钱
print('点击下方 金币 按钮 ')
os.system('adb shell input tap 527 2316 ')
# 点击看视频
print('等待7s')
time.sleep(7)
print('点击 看视频 按钮')
os.system('adb shell input tap 834 828')
time.sleep(2)
view_times = [8, 7, 9, 6, 12, 10, 10, 7, 8, 9]
while (1):
i = random.randint(0, 9)
print(f'随机看{view_times[i]}秒')
time.sleep(view_times[i])
# 起始坐标
x1 = random.randint(400, 600)
y1 = random.randint(1000, 1300)
# 终点坐标
x2 = random.randint(400, 600)
y2 = random.randint(400, 600)
# 向上滑动
print('上滑')
# 上滑
os.system(f'adb shell input touchscreen swipe {x1} {y1} {x2} {y2}')
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐

所有评论(0)