Code Monkey home page Code Monkey logo

ddshop's Introduction

ddshop

由于上海疫情,为了提高下单成功率,让大家可以顺利吃上饭。
此程序提供自动化抢购,若非难以存活,请给他人留一些机会!

温馨提示:

  1. 提前将需要购买的商品加入到购物车,并且勾上需求购买的商品
  2. 在开抢前运行程序(一般6点开售,提前几秒即可)
  3. 查看日志提示,抢到后去手机上付款

注意: 长时间运行,可能会被封号,且行且珍惜

安装

Releases

Github Release 下载

Docker

docker pull zc2638/ddshop:latest

源码

go install github.com/zc2638/ddshop/cmd/ddshop@latest

使用

命令行工具

  1. 使用抓包工具获取 叮咚买菜上的用户 cookie (DDXQSESSID)
  2. 使用获取到的 cookie 替换下面命令中的 <custom-cookie>
ddshop --cookie <custom-cookie>

使用配置文件,需要先创建配置文件(可参考 配置详情
<custom-config-path> 替换为实际的配置文件路径,例如:config/config.yaml

ddshop -c <custom-config-path>

支持预设置支付方式
默认支持的值:支付宝、alipay、微信、wechat

ddshop --cookie <custom-cookie> --pay-type wechat

Bark推送提醒 点击查看详情
使用获取到的 bark id 替换下面命令中的 <custom-bark-key>

ddshop --cookie <custom-cookie> --bark-key <custom-bark-key>

Docker

环境变量

docker run --name ddshop -it -e DDSHOP_COOKIE=<custom-cookie> -e DDSHOP_PAYTYPE=wechat -e DDSHOP_BARKKEY= zc2638/ddshop 

配置文件方式,将 <custom-config-dir> 替换成宿主机存放配置文件的目录
详细配置项请点击 配置详情

docker run --name ddshop -it -v <custom-config-dir>:/work/config zc2638/ddshop 

抓包

Charles抓包教程
微信小程序支持PC版,所以只需要安装抓包程序,打开 叮咚买菜微信小程序,直接进行抓包即可,无须进行手机配置。

声明

本项目仅供学习交流,严禁用作商业行为!
因他人私自不正当使用造成的违法违规行为与本人无关!
如有任何问题可联系本人删除!

ddshop's People

Contributors

tiantianbigwang avatar zc2638 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.