Git Product home page Git Product logo

miuihelper's Introduction

MIUIhelper

  • 最近想给手机root一下,发现居然要等7天,我又没有测试资格,为了防止以后再出现类似情况,于是决定写个脚本攒分
  • 该脚本需要使用Python 3.6以上版本运行
  • 抓包过程中有被加密数据,我无法处理,故使用了selenium,目前仅支持了Chrome浏览器(其他浏览器请自行调整代码)
    • selenium支持FireFox,Chrome,Ie,Edge,Safari等众多浏览器(未列举完),使用其他浏览器需要微调web.py
  • 答题准确性需要数据的支撑,若出现未记录的答案,将会随机选择并记录,欢迎大家提交数据correct.json(我也会不定期上传数据到Gitee)
  • 支持多账号答题
  • 正在设法让打开APP得到的4分也自动化

声明

  • 使用 MIUIhelper 即表明,您知情并同意:
    • 该项目仅供学习交流,严禁用于商业用途
    • MIUIhelper 不会对您的任何损失负责,包括但不限于账号异常、核弹爆炸、第三次世界大战等

安装

  • Python的第三方库安装

    pip3 install requests
    pip3 install selenium
    
  • 浏览器安装(以Chrome为例)

    • Windows:https://www.google.com/chrome/
    • Linux
      • Ubuntu、Debian
      wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
      sudo apt install ./google-chrome-stable_current_amd64.deb
      
      • CentOS
      wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
      sudo dnf localinstall ./google-chrome-stable_current_x86_64.rpm
      
  • 浏览器版本查看

    • Windows
      Win
    • Linux
      Linux
    google-chrome --version
    
  • Chromedriver放入该项目目录下,Chromedriver的版本需要根据浏览器选择

    • Chromedriver下载
    • 根据浏览器版本选择(以Linux为例,我的浏览器版本为98.0.4758.80)
      example1
      example2
  • 最后将chromedriver放入该项目的目录下,至此结束(若没有对应浏览器版本就选择版本号相近的)
    example3

使用

  • 将小米账户的账号密码分别填入accounts.json中的accountpassword,支持多账号答题
  • 在项目目录下使用python3 main.py即可
  • 自动运行
    • Windows 可以使用系统自带的计划任务(详见百度)
    • Linux 可以使用crontab

miuihelper's People

Contributors

azurstar avatar forggy0113 avatar

Stargazers

 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.