All Projects → StephanoGeorge → Jd-Auto-Shopping

StephanoGeorge / Jd-Auto-Shopping

Licence: GPL-3.0 license
京东商品补货监控及自动下单

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Jd-Auto-Shopping

react-native-jd
🔥JD App build in React Native (Redux) (仿京东客户端)
Stars: ✭ 25 (-28.57%)
Mutual labels:  jingdong
go-jd
京东App自动登录,在线商品自动下单
Stars: ✭ 158 (+351.43%)
Mutual labels:  jingdong
QL-
青龙一键搭建,检测安装docker,青龙脚本依赖,拉库,全部傻瓜式
Stars: ✭ 216 (+517.14%)
Mutual labels:  jingdong
jd-autobuy
Python爬虫,京东自动登录,在线抢购商品
Stars: ✭ 1,262 (+3505.71%)
Mutual labels:  jingdong
JDBrandMember
京东自动入会获取京豆
Stars: ✭ 496 (+1317.14%)
Mutual labels:  jingdong
Awesome Python Login Model
模拟登陆基本采用的是直接登录或者使用selenium+webdriver的方式,有的网站直接登录难度很大,比如qq空间,bilibili等如果采用selenium就相对轻松一些。
Stars: ✭ 13,953 (+39765.71%)
Mutual labels:  jingdong
Decryptlogin
APIs for loginning some websites by using requests.
Stars: ✭ 1,861 (+5217.14%)
Mutual labels:  jingdong
Jd Assistant
京东抢购助手:包含登录,查询商品库存/价格,添加/清空购物车,抢购商品(下单),查询订单等功能
Stars: ✭ 4,344 (+12311.43%)
Mutual labels:  jingdong

京东商品补货监控及自动下单

一些代码、接口参考了 https://github.com/tychxn/jd-assistant

特性

  • 最快约 0.2s 检查 100 件商品的库存
  • 一个实例监控一个地区
  • 可以配置多个账户, 有货后同时下单

使用方法

configTemplate.yaml 文件更名为 config.yaml, 并按照说明配置, 运行 main.py

获取下单相关的值

向购物车中加入任意商品, 点击去结算, 在订单结算页面打开开发者工具, 在 Console 中执行以下代码, 将输出复制至配置文件:

let eid = $('#eid').val();
let fp = $('#fp').val();
let trackId = getTakId();
console.log(`eid: ${eid}\nfp: ${fp}\ntrackId: ${trackId}\n`);

获取 cookies

在任意京东页面打开开发者工具, 刷新, 查看网络请求, 过滤 passport.jd.com/loginservice.aspx, 将请求 cookie 复制至配置文件

测试下单

按照说明编辑 testOrder.py 文件, 并运行它

说明

  • 监控库存正常或超时都不会输出, 要自定义请修改代码
  • cookies 24h 过期
  • 下单后自行支付
  • 不会购买抢购商品
  • 遇到意外的异常先试试最新版, 还有问题的话请提交 Issue
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].