Git Product home page Git Product logo

appcrawler's Introduction

appCrawler

使用方法:

1. 首先安装依赖的几个包

pip install -r requirements.txt (注意python的版本用pip或者pip3)

2.修改config.yaml中的一些配置选项

其中的一些配置可能您用不到,适当删除或添加,其中init_craw是要主要注意的。

package_name:测试app的包名

activity_name:启动activity的名称

main_page_xpath:app的主页一般就是首页 用唯一的xpath标识出来

access_main_page:重启app后如何进入主页

设计main_page_xpath和access_main_page的策略原因?

我们的app启动时的页面是服务器控制的,也就是随机的。所以我有必要指引他的开始遍历点

如果你的app是固定的启动到某个页面可不必填写!

然后config.yaml中的xpath我写的比较复杂,因为我们的app会被压缩处理即id是动态变化的,所有的xpath没有用id,这一点如果id是固定的没有必要这么复杂

运行

python craw.py crtl+c或者遍历完会有相关截图和生成思维导图

appcrawler's People

Contributors

zhoudaqiang avatar

Stargazers

flyfire avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.