Giter Club home page Giter Club logo

masks's Introduction

写在最前

可能有人说用脚本不公平,谁又敢说这个社会处处公平。

社会的物资需求和供给本来也没有办法完全对等,疫情当前,大家也是为了活命而已。

这个脚本只花了很短时间完成,如果对你没有帮助,我也感到非常抱歉,希望阅读的你和你的家人身体健康。

最后,这个脚本仅做技术交流(无力之言),希望不会出现在非法抢购的场合。

愿疫情早日结束 :)

运行简要说明

  1. 安装 Python (Version >= 3.7)

  2. 安装依赖

    $ ~ git:(master) ✗ pip3 install -r requirments.txt
  3. 使用Charles或者Fiddler抓取手机端「穗康小程序」登陆后请求头中的sessionid

    这个没有教程抱歉。

  4. 填写自己的信息到文件 config.py ,或者使用命令行参数指定对应信息

    $ ~ git:(master) ✗ python3 run.py -h
        -h, --help          查看所有参数
        -n, --name          设置姓名
        -i, --id            设置身份证号码
        -m, --mobile        设置手机号码
        -t, --type          设置口罩类型, 1=N95(5个), 2=普通防护(10个)
        -s, --session       设置会话id
        --status-timeout    检查状态超时时间,单位:秒,默认 3 秒
        --order_timeout     下单接口超时时间,单位:秒,默认 2 秒
  5. 启动程序

    $ ~ git:(master) ✗ python3 run.py -n '张三' -i '440000197001011234' -m '13800000000' -s 'a9cfefe3-400f-49fe-b954-c8979fa36fc6'

masks's People

Contributors

yue-litam avatar

Watchers

 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.