GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - huaisha1224/jd-assistant: 京东抢购助手:包含登录,查询商品库存/价格,添加/清空购物车,抢购商品(下单),查询订单、查询本地生活服务订单验证码状态查询等

BranchesTags
Open more actions menu

Latest commit

 

History

28 Commits
28 Commits

Folders and files

NameName
Last commit message
Last commit date
area_id
area_id
 
 
docs
docs
 
 
js
js
 
 
.gitignore
.gitignore
 
 
Get-JDCookie.py
Get-JDCookie.py
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
config.ini
config.ini
 
 
config.py
config.py
 
 
db.py
db.py
 
 
excel.py
excel.py
 
 
exception.py
exception.py
 
 
get_eid_fp.html
get_eid_fp.html
 
 
jd_assistant.py
jd_assistant.py
 
 
log.py
log.py
 
 
main.py
main.py
 
 
messenger.py
messenger.py
 
 
requirements.txt
requirements.txt
 
 
shimo.py
shimo.py
 
 
timer.py
timer.py
 
 
util.py
util.py
 
 

Repository files navigation

JD-Assistant

version status license star, issue

京东抢购助手源代码Fork自tychxn -由于原作者已不再更新、刚好我又有需要、所以在此基础上进行了修改;

主要功能

  • 登陆京东商城(www.jd.com)
    • 手机扫码登录
    • 保存/加载登录cookies (可验证cookies是否过期)
  • 商品查询操作
    • 提供完整的地址⇔ID对应关系
    • 根据商品ID和地址ID查询库存
    • 根据商品ID查询价格
  • 购物车操作
    • 清空/添加购物车 (无货商品也可以加入购物车,预约商品无法加入)
    • 获取购物车商品详情
  • 订单操作
    • 获取订单结算页面信息 (商品详情, 应付总额, 收货地址, 收货人等)
    • 提交订单(使用默认地址)
      • 直接提交
      • 有货提交
      • 定时提交
    • 查询订单 (可选择只显示未付款订单)
    • 查询本地生活服务订单中的验证码及其状态(验证码是否已消费)
  • 其他
    • 商品预约
    • 用户信息查询

运行环境

  • Python 3

第三方库

  • Requests
  • Beautiful Soup
  • PyCryptodome

安装:

pip install -r requirements.txt

使用教程

程序主入口在 main.py

👉 使用教程请参看Wiki

更新记录

  • 【2022.01.18】优化excel模块、使用CSV模块替换Pandas、减少打包exe后的包大小
  • 【2021.09.10】get_order_vercode模块增加输出内容到csv文件
  • 【2021.09.08】优化时间模块、同步JD时间提高成功率
  • 【2021.09.06】优化代码、提高性能
  • 【2021.08.23】增加shimo.py模块、支持提交数据到石墨文档
  • 【2021.08.12】优化代码、输出增加验证码消费时间
  • 【2021.08.05】优化代码、处理某些特殊订单获取不到验证码的情况
  • 【2021.08.03】优化代码、处理cookies失败情况下的异常情况
  • 【2021.07.22】在原作者代码基础上、增加了查询订单验证码功能

备注

  • 🌟强烈建议大家在部署代码前使用有货的商品测试下单流程,并且:在京东购物车结算页面设置发票为电子普通发票-个人,设置支付方式为在线支付,否则可能出现各种未知的下单失败问题。🌟
  • 京东商城的登陆/下单机制经常改动,原jd-assistant最后一次更新时间时间2020.03.08。如果功能失效,欢迎提issue,有时间我会来更新。
  • 代码在Win10中编写,如果在其他平台上运行出行问题,欢迎提issue。

待完成的功能

  • [✔] 订单验证码查询
  • 抢优惠券

不考虑的功能

  • ✖️ 支付功能
  • ✖️ 多账号抢购

感谢

借鉴skyiea314的时间同步代码

About

京东抢购助手:包含登录,查询商品库存/价格,添加/清空购物车,抢购商品(下单),查询订单、查询本地生活服务订单验证码状态查询等

Topics

python

Resources

Readme
MIT license
Activity

Stars

293 stars

Watchers

13 watching

Forks

107 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.