shiqinying / app-spider

uiautomater2+mitmdump 实现对主流app的爬取

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

app-spider

uiautomator2+mitmdump实现对app的爬取

架构

image

效果预览

淘宝

image

抖音

image

fresh

image

环境

  • 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
    

About

uiautomater2+mitmdump 实现对主流app的爬取

License:MIT License


Languages

Language:Python 100.0%