Skip to content

Commit 127e90b

Browse files
authored
完善文档 (#244)
1 parent db224cb commit 127e90b

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

README.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@
4545

4646
### 数据统计
4747

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天 |
5454

5555
### 猜测
5656
推测返回90008是京东的风控机制,代表这次请求直接失败,不参与抢购。
@@ -110,7 +110,14 @@
110110
> 具体修改为:在`jd_spider_requests.py`文件中搜索`self.seckill_num = 2`,将`2`改为`1`
111111
112112
#### 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+
```
114121

115122
#### 5.抢购结果确认
116123
抢购是否成功通常在程序开始的一分钟内可见分晓!

0 commit comments

Comments
 (0)