python如何赚外快,学会了python如何搞副业

首页 > 经验 > 作者:YD1662022-10-28 21:45:23

def__video(self): """ 查看视频 :return: """ poco('com.songheng.eastnews:id/ko').click() whileTrue: #视频列表 poco('com.songheng.eastnews:id/a0z').wait_for_appearance() sleep(2) self.__read_key_news() video_elements=poco('com.songheng.eastnews:id/a0z').children() print('video items是否存在:') print(video_elements.exists()) #遍历视频 #注意:视频播放完全可以提前返回 forvideo_elementinvideo_elements: #1.标题元素 video_title_element=video_element.offspring('com.songheng.eastnews:id/a3q') #播放按钮 video_play_element=video_element.offspring('com.songheng.eastnews:id/nj') #2.必须保证【视频标题】和【播放按钮】都可见 ifnotvideo_title_element.exists()ornotvideo_play_element.exists(): continue #3.标题 video_title=video_element.offspring('com.songheng.eastnews:id/a3q').get_text() print('当前视频的标题是:%s,播放当前视频'%video_title) #点击播放视频 video_play_element.focus("center").click() #4.播放视频 self.play_video() print('播放下一个视频') self.__back_keyevent() #滑动到下一页的视频 poco.swipe([0.5,0.8],[0.5,0.3],duration=0.2)

观看小视频获取金币的操作最为简单。首先切换到小视频 Tab,获取到第一个视频的元素,执行点击操作,开始播放小视频。

poco('com.songheng.eastnews:id/kr').click() #加载出列表元素,点击第一项进入 poco('com.songheng.eastnews:id/a0p').child('com.songheng.eastnews:id/g_').wait_for_appearance(60) poco('com.songheng.eastnews:id/a0p').child('com.songheng.eastnews:id/g_').children()[0].click()

python如何赚外快,学会了python如何搞副业(13)

最后只需要等待视频播放 30 秒之后,使用 swipe 函数向左滑动屏幕切换到下一个视频,就可以实现反复播放获取金币的操作。

whileTrue: sleep(30) #向左滑动 poco.swipe([0.9,0.5],[0.1,0.5],duration=0.2)

python如何赚外快,学会了python如何搞副业(14)

执行程序,手机会自动打开客户端,执行阅读新闻、看视频和小视频的一系列操作。

最后只需要将阅读新闻、播放视频和小视频的时间分配好,一个客户端获取金币达到上限后,就关闭应用,然后切换到其他 App 客户端,继续阅读新闻和视频,就可以实现薅多个平台的羊毛。

当然了,做自媒体的话是需要积累,如果能够忍受前期0收入0阅读阶段,不断坚持运营,后期的收入还是很客观的

Anyway,任何有需要赚外快的小伙伴们都可以加我好友交流经验哦,你有一种赚钱门路,我有一种赚钱门路,交流一下我们每人就有两种赚钱门路啦,(啥,能赚钱的门路怎么会分享出来),毕竟市场这么大,谁也不能独吞是吧,感谢观看

上一页1234末页

栏目热文

文档排行

本站推荐

Copyright © 2018 - 2021 www.yd166.com., All Rights Reserved.