Kaynağa Gözat

添加日期搜索;

dzr 3 ay önce
ebeveyn
işleme
d1f91de142
1 değiştirilmiş dosya ile 5 ekleme ve 2 silme
  1. 5 2
      lzz_theme/zgzbtbggfwpt/zgzbtbggfwpt_list_f.py

+ 5 - 2
lzz_theme/zgzbtbggfwpt/zgzbtbggfwpt_list_f.py

@@ -5,8 +5,9 @@ Created on 2025-04-29
 @summary: 中国招标投标公共服务平台 - 列表页[已按规范]  - 小周期
 """
 from collections import namedtuple
+from datetime import date
 
-from spider_list import Spider as Crawl_Zgzb
+from spider_list import Spider
 
 Menu = namedtuple('Menu', ['channel', 'spidercode', 'cid', 'rid', 'crawl_page'])
 
@@ -18,4 +19,6 @@ if __name__ == '__main__':
         Menu('中标候选人公示', 'a_zgzbtbggfwpt_zhbhxrgs2', '91', 'candidate', 5),
         Menu('资格预审公告', 'a_zgzbtbggfwpt_zgysgg2', '92', 'qualify', 2),
     ]
-    Crawl_Zgzb(menus, threads=5).start()
+
+    today = date.today().strftime("%Y-%m-%d")
+    Spider(menus, threads=5, date=(today, today)).start()