GithubHelp home page GithubHelp logo

pet-chain's Introduction

pet-chain

莱茨狗抢购助手。

支持验证码,提供手动输入和百度ocr自动识别两种方式。

首次使用

  1. 安装node环境

  2. clone项目到本地

  3. 修改配置 config.js

  4. 运行 node index.js

配置说明

  • cookie

    在chrome中打开 https://pet-chain.baidu.com/chain/dogMarket 进入调试模式 查看 cookie 并填入

  • baidu_ocr

    https://ai.baidu.com/tech/ocr/general 注册文字识别应用 填入相关 key

  • yzm_method

    manual: 手动输入 baidu: 百度文字识别

  • threshold

    逗号隔开的五个数字,从左到右依次是从低到高稀有度的最高购买阈值。超过阈值的条目均不会显示在命令行中。

其他说明

  1. 查询超时是百度服务器没有返回相关数据,只需让脚本继续重试即可

  2. 在手动验证码模式下,需要手动输入 yzm.png 中的内容,并敲 enter 进入购买环节。

  3. 由于验证码的存在,抢狗存在失败几率,请耐心尝试~

pet-chain's People

Contributors

iinitd avatar

Watchers

James Cloos avatar  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.