1 Star 0 Fork 0

wuwind/tencent-edu-wrapper

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
wrapper_prompt.py 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
r00t1900 提交于 2019-11-05 00:11 . add adb mode
# _*_coding:utf-8 _*_
# @Time : 2019/11/4 12:54
# @Author : Shek
# @FileName: wrapper_prompt.py
# @Software: PyCharm
from tencent_edu import wrapper
import os
run_mode = input('run mode(0 for file, 1 for directory and 2 for adb)>')
export_dir = input('export directory>')
w = wrapper()
w.export_dir = str(export_dir)
if int(run_mode) == 1:
directory = input('read directory>')
w.process_directory(directory=directory)
elif int(run_mode) == 2:
directory = 'txdownload'
input('[+] please enable debug mode on your phone, and press any key to continue..')
os.system('adb devices')
try:
os.system('adb pull {}'.format('/sdcard/Android/data/com.tencent.edu/files/tencentedu/video/txdownload'))
except KeyboardInterrupt:
print('[-] stop pulling from phone, some files may be damaged')
print('[+] Pulling finished, starting job...')
w.process_directory(directory=directory)
os.system('del {}'.format(directory))
# print('[+] please delete temp folder:{} manually'.format(os.path.abspath(directory)))
elif int(run_mode) == 0:
filename = input('filename>')
w.process_db_file(db_filename=filename)
ex = input('done, press any key to quit :)')
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/whonfeng/tencent-edu-wrapper.git
[email protected]:whonfeng/tencent-edu-wrapper.git
whonfeng
tencent-edu-wrapper
tencent-edu-wrapper
master

搜索帮助