首页 > 微信 > 详细

微信朋友圈自动点赞

时间:2019-09-25 20:57:30      阅读:122      评论:0      收藏:0      [点我收藏+]
import time

import uiautomator2 as ui2

d = ui2.connect('http://172.18.105.47:7912')
d.app_start("com.tencent.mm", stop="True")
fs = d(resourceId="com.tencent.mm:id/sh")[2]
time.sleep(1)
fs.click()
pyq = d(resourceId="android:id/title")
if len(pyq):
    time.sleep(1)
    pyq[0].click()
stop_flag = False
while not stop_flag:
    eud = d(resourceId="com.tencent.mm:id/eud")
    for i in eud:
        # likeandcommand = d(resourceId="com.tencent.mm:id/eop",description="评论")
        likeandcommand = i.child(resourceId="com.tencent.mm:id/eop")

        if len(likeandcommand):
            for item in likeandcommand:
                item.click()
                d.toast.show("准备点赞")
                like = d(resourceId="com.tencent.mm:id/eoc", text="赞")
                if len(like):
                    like[0].click()
                time.sleep(1)
    d.swipe(0.2, 0.9, 0.2, 0.55)
    time.sleep(1)

微信朋友圈自动点赞

原文:https://www.cnblogs.com/c-x-a/p/11586702.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!