Coder Social home page Coder Social logo

listenyear / jd_seckill_2024 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yuweiping/jd_seckill_2024

0.0 0.0 0.0 3.26 MB

茅台,mate60,秒杀

License: GNU General Public License v3.0

JavaScript 1.62% Python 97.33% Batchfile 0.56% Dockerfile 0.48%

jd_seckill_2024's Introduction

前言

茅台不好抢,但是抢mate60还是很容易的。代码同样适用于JD的其他抢购商品,配置文件中添加 task 即可。 之前手册用的vnet抓包,很多人失败在这一步。重新找了一个好用的抓包软件,手册参考

操作步骤:

  1. 将config-test.ini改名为config.ini
  2. 按照手册抓包补全信息,注意config中的配置信息是不用加引号的,末尾不要有分号
  3. main.py

如果sign失败大概率是api_jd_url有问题,大家可参考如下格式 api_jd_url = https://api.m.jd.com/client.action?functionId=genToken&clientVersion=12.2.2……

参数说明

参数 是否必填 说明
local_cookies 抓包
local_jec 抓包
local_jdgs 抓包
api_jd_url 抓包
continue_time 持续时间,实际jd返回html就认为结束了
work_count 多进程,可参考CPU核数
fp 点击获取
task 配置任务,商品,预约时间,抢购时间
address_id 如果不使用默认收货地址,可指定地址列表中的其他地址
push_token 抢购成功后的推送

address_id设置方法

  1. 打开jd_seckill.py 找到get_address_by_pin方法
  2. 取消 # logger.info(resp_json['addressList'])这行的注释
  3. 运行 main.py 可用获取到所有的address。根据自己的标识或者手机号等信息判断要选择的id即可

注意事项

  1. 注意本库只能作为学习用途, 造成的任何问题与本库开发者无关, 如侵犯到你的权益,请联系删除
  2. 为限制大范围传播,不提供打包好的exe,当然赞助者可跟我索要,但不得传播。
  3. 抢茅台需要plus分>=103 ,本程序是否会造成封号,降分未完全测试,后果自负
  4. 亲测,plus分低于103获取到真实的抢购url要在3s之后,这时候早就抢完了。所以分不够不用参与,不会有任何意外。
  5. 有人用本仓库抢到过茅台,参考下图,我没抢到过。

参考

sign部分使用的是如下大佬的库,有兴趣的可以关注下 n1ptune/jdSign(github.com)

支持

  1. 右上角star支持一下
  2. 如果各位老板需要联系我支持,请打赏后再加微信(小号s84iis)并注明已捐赠。

wx

jd_seckill_2024's People

Contributors

yuweiping 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.