GithubHelp home page GithubHelp logo

jdduobaodao's Introduction

京东夺宝岛自动加价抢购程序

2022-02-22更新

  • 优化登录策略,启动浏览器后只需登录一次
  • 增加“自动加价/出最高价”选项
  • 优化刷新频率

2021-08-29更新

出价策略改为在最后时刻,以最高价出价

2021-06-27更新

由于京东更新了出价的接口调用频率,2秒只能调用一次接口,该工具无法依靠暴力请求来达到出价的目的了。只能在最后时刻进行出价。

注意:由于京东出价的接口保护,目前该工具成功率较低,请谨慎使用

目前只能对单个商品进行抢购

使用方法

  1. clone整个下项目
  2. 安装nodejs
  3. 进入项目目录,执行npm install,安装依赖环境
  4. 修改server/index.js中的OfferPriceDelay,调整最后出价的时间,单位毫秒,默认100
  5. npm start运行软件
  6. npm run dist生成对应安装包

基本原理

使用puppeteer加载拍卖页面,先模拟一次正常操作的出价,获取出价请求中需要的各个参数,

然后轮询当前出价价格和剩余出价时间,在距离出价截止时间OfferPriceDelay毫秒时,开始请求出价接口。

注意事项

  • 本程序仅供本人研究学习使用
  • 需要安装chrome浏览器
  • 如果网络环境不好,可以把OfferPriceDelay值设置高一点
  • 在登录成功后跳转,有几率需要进行手动点击验证

jdduobaodao's People

Contributors

dependabot[bot] avatar callmegaga avatar yefd 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.