-
大小: 0.59M文件類型: .zip金幣: 1下載: 0 次發布日期: 2021-03-02
- 語言: Python
- 標簽:
資源簡介
借助「adb」工具,配合Python腳本來實現自動閱讀東方頭條
代碼片段和文件信息
import?os
import?time
count=0
def?get():
????print(“正在刷新...“)
????os.system(‘adb?shell?input?tap?105?1890‘)
????time.sleep(1)
????print(“刷新成功“)
????print(“點開第“count+1“條新聞“)
????os.system(‘adb?shell?input?tap?300?600‘)
????time.sleep(1)
????for?i?in?range(1?30):
????????print(“閱讀中,剩余“?30?-?i?“秒“)
????????#?os.system(‘adb?shell?input?swipe?560?1000?550?426‘)
????????startX?=?random.randint(460?660)
????????startY?=?random.randint(900?1100)
????????endX?=?random.randint(450?550)
????????endY?=?random.randint(326?526)
????????os.system(“adb?shell?input?swipe?“?+?str(startX)?+?‘?‘?+?str(startY)?+?‘?‘?+?str(endX)?+?‘?‘?+?str(endY))
????print(“返回主頁面“)
????os.system(‘adb?shell?input?tap?51?130‘)
????#?時段獎勵(45分鐘1次)
????if((count%90)==0):
????????os.system(‘adb?shell?input?tap?966?132‘)
????????time.sleep(0.5)
????????os.system(‘adb?shell?input?tap?909?518‘)
print(“無限循環?or?循環n次?[1|2]“)
a?=?input(“請輸入1或2:“)
if?a?==?‘1‘:
????print(“----無限循環模式
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-07-04?12:38??News-money-master\
?????文件????????1210??2019-07-04?12:38??News-money-master\.gitignore
?????文件???????96256??2019-07-04?12:38??News-money-master\AdbWinApi.dll
?????文件???????60928??2019-07-04?12:38??News-money-master\AdbWinUsbApi.dll
?????文件?????????427??2019-07-04?12:38??News-money-master\README.md
?????文件?????1011200??2019-07-04?12:38??News-money-master\adb.exe
?????文件????????1310??2019-07-04?12:38??News-money-master\money.py
?????文件????????1433??2019-07-04?12:38??News-money-master\money_163mumu.py
?????文件???????80884??2019-07-04?12:38??News-money-master\下載方法.png
- 上一篇:HDF批量轉TIF
- 下一篇:隨機生成50000個不重復的手機號碼
評論
共有 條評論