uiautomator2+mitmdump实现对app的爬取
淘宝
抖音
fresh
- python3.6
- windows
- 安卓手机
- 根据工具使用说明/自动化测试工具.md配置uiautomator2
- 根据工具使用说明/抓包软件.md配置charles和mitmproxy
- 将config_template.py文件更改为config.py,配置相应变量
- 创建虚拟环境
mkvirtualenv --python==指定的python版本 env_name
workon env_name
-
安装依赖包 pip install -r requirements.txt
(生成requirements.txt方法 pip freeze > requirements.txt)
或者可以手动安装
pip install uiautomator2
pip install mitmproxy
pip install redis
pip install pymongo