# Scrapling 遇到 304，怎样保留上次成功的页面？

1. 用本地 HTTP 源返回带 ETag 的商品页，再带 If-None-Match 重抓。收到 304 后用上次正文重新解析。
2. 在 Python 3.12 虚拟环境中运行下方命令，打开 results/s01.json 对照结果。
3. 核对下方本次结果与验收条件。完整输入、结果和执行范围可查看回执。

```bash
python -m pip install 'scrapling[fetchers]==0.5.1'
python local-lab.py --output ./results s01
```
