GithubHelp home page GithubHelp logo

zjm20100113 / jd-assistant Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tychxn/jd-assistant

0.0 1.0 0.0 5.83 MB

京东抢购助手:包含登录,查询商品库存/价格,添加/清空购物车,抢购商品(下单),查询订单等功能

License: MIT License

Python 100.00%

jd-assistant's Introduction

JD-Assistant

version status license star, issue

京东抢购助手

主要功能

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

运行环境

第三方库

安装:

pip install -r requirements.txt

使用教程

👉请参看Wiki

公告

  • 【2019.03.06】最近京东更新了抢购接口,出现网页端可以抢购成功,但是脚本抢购成功率非常低的情况。本人暂时查找不到原因,寻求各位的帮助。联系邮箱[email protected],非常感谢~

更新记录

  • 【2019.02.16】更新了普通商品的抢购代码,在Wiki中写了一份使用教程。
  • 【2018.11.29】京东更新了抢购商品的下单接口,代码已更新,支持定时抢购。
  • 【2018.09.26】京东已下线字符验证码接口,账号密码登录功能失效,等使用扫码登录asst.login_by_QRcode()
  • 【2018.07.28】京东已采用滑动验证码替换登录时出现的字符验证码,但还没有下线字符验证码接口,账号密码登录功能依旧可用。等待后续更新滑动验证方式,推荐使用扫码登录

备注

  • 京东商城的登陆/下单机制经常改动,当前测试时间2019.02.16。如果失效,欢迎提issue,我会来更新。
  • 图片查看器背景颜色为黑色时,二维码会出现无法扫描的情况 (多发于win10系统),请更换软件打开图片。
  • 代码在macOS中编写,如果在其他平台上运行出行问题,欢迎提issue。

待办列表

  • 添加日志记录功能

jd-assistant's People

Contributors

tychxn avatar

Watchers

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