淘宝天猫自动领取喵币

话不多说上代码

手机连接电脑 打开做任务领喵币界面  

需要安装adb程序哦

#  天猫自动刷猫币
import time, os
def screen(i):
    # 文件名
    fileName = 'screen.png'
    # 文件路径
    filePath = '/sdcard/tmp/' + fileName
    # 截图
    pushScreen = 'adb shell screencap -p ' + filePath
    pullScreen = 'adb pull ' + filePath
    # os.system(pushScreen)
    # os.system(pullScreen)

    time.sleep(2)
    # #在当前屏幕中查找指定图片(图片需要由系统截图功能截取的图)
    # coords = pyautogui.locateOnScreen()
    # x,y=pyautogui.center(coords)
    # 点击屏幕位置
    quliulan = 'adb shell input tap 895 1214' 
    os.system(quliulan)

    time.sleep(2)
    # 滑动
    huadong = 'adb shell input swipe 800 800 800 400' 
    os.system(huadong)
    print('滑动:', i, '次')

    time.sleep(3)
    # 滑动
    huadong = 'adb shell input swipe 800 800 800 400' 
    os.system(huadong)

    time.sleep(17)

    # 返回
    # quliulan = 'adb shell input tap 947 1793' 
    quliulan = 'adb shell input keyevent 4' 
    os.system(quliulan)
    print('返回活动列表')
    i += 1
    screen(i)
i = 1
screen(i)

# 点击位置 (x,y)
# adb shell input tap 250 250

# 滑动
# adb shell input swipe 800 800 800 400


# 截图和上传命令
# adb shell screencap -p /sdcard/tmp/screen.png

# adb pull /wamp/Apache24/htdocs/python/2020/tianmao/screen.png

程序就会自动帮你领取喵币啦~

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值