File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change 45
45
46
46
### 数据统计
47
47
48
- | 案例 | 小白信用 | 90016 | 90008 | 抢到耗时 |
49
- | ---- | ---- | ---- | ---- | ---- |
50
- | 张三 | 63.8 | 59.63% | 40.37% | 暂未抢到 |
51
- | 李四 | 92.9 | 72.05% | 27.94% | 4天 |
52
- | 王五 | 99.6 | 75.70% | 24.29% | 暂未抢到 |
53
- | 赵六 | 103.4 | 91.02% | 8.9% | 2天 |
48
+ | 案例 | 小白信用 | 90016 | 90008 | 抢到耗时 |
49
+ | ---- | -------- | ------ | ------ | ---- ---- |
50
+ | 张三 | 63.8 | 59.63% | 40.37% | 暂未抢到 |
51
+ | 李四 | 92.9 | 72.05% | 27.94% | 4天 |
52
+ | 王五 | 99.6 | 75.70% | 24.29% | 暂未抢到 |
53
+ | 赵六 | 103.4 | 91.02% | 8.9% | 2天 |
54
54
55
55
### 猜测
56
56
推测返回90008是京东的风控机制,代表这次请求直接失败,不参与抢购。
110
110
> 具体修改为:在` jd_spider_requests.py ` 文件中搜索` self.seckill_num = 2 ` ,将` 2 ` 改为` 1 `
111
111
112
112
#### 4.运行main.py
113
- 根据提示选择相应功能即可
113
+ 根据提示选择相应功能即可。如果出现请扫码登录的提示可查看项目目录下是否存在` qr_code.png ` 文件,若存在打开图片,并使用京东手机APP扫码登录即可。
114
+
115
+ - * Linux下命令行方式显示二维码(以Ubuntu为例)*
116
+
117
+ ``` bash
118
+ $ sudo apt-get install qrencode zbar-tools # 安装二维码解析和生成的工具,用于读取二维码并在命令行输出。
119
+ $ zbarimg qr_code.png > qrcode.txt && qrencode -r qrcode.txt -o - -t UTF8 # 解析二维码输出到命令行窗口。
120
+ ```
114
121
115
122
#### 5.抢购结果确认
116
123
抢购是否成功通常在程序开始的一分钟内可见分晓!
You can’t perform that action at this time.
0 commit comments