您好,欢迎来到年旅网。
搜索
您的当前位置:首页python自动刷抖音

python自动刷抖音

来源:年旅网

代码:

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}')

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- oldu.cn 版权所有 浙ICP备2024123271号-1

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务