From c65f3d07f8e10c5a8ac9e6237488e3dcbe14391d Mon Sep 17 00:00:00 2001 From: ztb-system Date: Thu, 26 Feb 2026 09:34:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=99=E6=B1=9F=E7=88=AC?= =?UTF-8?q?=E8=99=AB=E6=97=A5=E6=9C=9F=E8=BF=87=E6=BB=A4=EF=BC=9A=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=AE=A2=E6=88=B7=E7=AB=AF=E4=BA=8C=E6=AC=A1=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E9=98=B2=E6=AD=A2=E8=8E=B7=E5=8F=96=E9=9D=9E=E7=9B=AE?= =?UTF-8?q?=E6=A0=87=E6=97=A5=E6=9C=9F=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spiders/zhejiang.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spiders/zhejiang.py b/spiders/zhejiang.py index 8dae1c0..61966cf 100644 --- a/spiders/zhejiang.py +++ b/spiders/zhejiang.py @@ -295,6 +295,11 @@ class ZhejiangSpider(BaseSpider): count = 0 for rec in records: + # 客户端日期二次过滤:跳过不在目标日期范围内的记录 + rec_date = rec.get("webdate", "").split(" ")[0] + if date_filter and rec_date and rec_date != start_date: + continue + link = rec.get("linkurl", "") if link and not link.startswith("http"): link = self.config["base_url"] + link