Skip to main content

使用uiautomator刷快手日赚30000金币

电脑需要安装adb.exe。原理:使用uiautomator模拟手动操作手机。

import uiautomator2 as d
import time
import threading
import os
import random

# 支持多个手机同时执行上滑操作刷视频
class myThread(threading.Thread):
    def __init__(self, did):
        threading.Thread.__init__(self)
        self.did = did

    def run(self):
        kuaishou(self.did)

def kuaishou(did):
    #通过usb连接
    a=d.connect_usb(did)
    
   	# 打开快手
    a.app_start('com.kuaishou.nebula')
    a.implicitly_wait(10)
  
     
 
    #a.press(91)
    while i<50: 164="" a.app_stop="" a.swipe="" a="os.popen(" adb="" b="a.read()" click="" com.example.hello_world="" devices="" didlist="[]" for="" i="" if="" in="" input="" keyevent="" len="" list="" n="" os.popen="" random.random="" range="" shell="" text="开宝箱" time.sleep="" waittime="">5:
        tem = list[i].split('\t')[0]
        thread = myThread(tem)
        thread.start()


for i in didList:
    thread = myThread(i)
    thread.start()


      
for i in didList: thread = myThread(i) thread.start()

Comments

Popular posts from this blog

span[class~="sr-only"]

  The  span[class~="sr-only"]  selector will select any  span  element whose  class   includes   sr-only . Create that selector, and give it a  border  property set to  0 . span [ class ~= "sr-only" ] {    border:   0 ; }

Use Recursion to Create a Range of Numbers

  function   rangeOfNumbers ( startNum ,  endNum ) {    if ( startNum <= endNum )   {      const   arrNumber  =  rangeOfNumbers ( startNum ,  endNum - 1 );      arrNumber . push ( endNum );      return   arrNumber ;   }    else  {      return  [];   }       }; console . log ( rangeOfNumbers ( 6 , 8 ));//[6,7,8] console . log ( rangeOfNumbers ( 3 , 12 )); //[ 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ]

About the Little Lemon receipt maker exercise

 My homework and exercise of the lesson "About the Little Lemon receipt maker exercise" of the class "programming with Javascript" on coursera. const menu = [     {         Dish : "Italian pasta" ,         price : 9.55     },     {         Dish : "Rice with veggies" ,         price : 8.65     },     {         Dish : "Chicken with potatoes" ,         price : 15.55     },     {         Dish : "Vegetarian Pizza" ,         price : 6.45     } ]; function receiptMaker ( arr , bool ) {     if ( bool == false )     {         console . log ( "Prices without tax:" );         arr . forEach ( element => {             console . log ( `Dish: ${ element . Dish } Price (incl.tax):$ ${ element . price } ` );                     });     }     else     {         console . log ( "Prices with 20% tax:" );         arr . forEach ( element => {             console . log ( `Dish: ${ element . Dish } Price (inc