105 lines
3.3 KiB
YAML
105 lines
3.3 KiB
YAML
# 广西政府采购网公告监控系统配置文件
|
|
# 复制此文件为 config.yaml 并修改相应配置
|
|
|
|
# 调试模式
|
|
debug: false
|
|
|
|
# 日志配置
|
|
log_level: INFO
|
|
log_file: logs/gx_gp_monitor.log
|
|
|
|
|
|
# 爬虫配置
|
|
crawler:
|
|
base_url: "https://zfcg.gxzf.gov.cn"
|
|
timeout: 30 # 请求超时时间(秒)
|
|
max_retries: 3 # 最大重试次数
|
|
retry_delay: 1.0 # 重试初始延迟
|
|
max_retry_delay: 60.0 # 重试最大延迟
|
|
backoff_factor: 2.0 # 退避因子
|
|
user_agents: # User-Agent列表
|
|
- "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
|
|
- "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Safari/605.1.15"
|
|
proxies: [] # 代理列表
|
|
request_delay: 1.0 # 请求间延迟
|
|
request_delay_max: 3.0 # 请求间最大延迟
|
|
keyword: ["大化", "信息化"] # 关键词筛选(支持多个关键词)
|
|
start_date: "" # 开始日期 (YYYY-MM-DD)
|
|
end_date: "" # 结束日期 (YYYY-MM-DD)
|
|
max_pages: 10 # 最大页数
|
|
page_size: 100 # 每页大小
|
|
|
|
# 企业微信通知配置
|
|
wechat_app:
|
|
enabled: true # 是否启用企业微信通知
|
|
corp_id: "ww69e8e44636f47780" # 企业ID
|
|
agent_id: "1000007" # 应用ID
|
|
secret: "SmelCwKFoL0E9ATWFzr-w7gsfXBTN72lT1UqnNd0HpI" # 应用Secret
|
|
token: "DmvL98cAF6x9CFtQZwqD2emGL8S7HxA" # Token
|
|
encoding_aes_key: "yAc4OoSCP92YTefHXYfw27WeG9oF11W9d6nw6QYlU3D" # 消息加密Key
|
|
port: 18001 # 服务端口
|
|
host: "0.0.0.0" # 服务主机
|
|
debug: false # 调试模式
|
|
# 数据库配置
|
|
DB_NAME=gx-gp-notify
|
|
DB_USER=gx-gp-notify
|
|
DB_PASSWORD=MA6RBX4F6Bd5DGmw
|
|
DB_HOST=10.10.10.14
|
|
DB_PORT=5432
|
|
|
|
|
|
# 公告来源配置
|
|
sources:
|
|
ZcyAnnouncement1:
|
|
category_id: 66485
|
|
name: "采购公告"
|
|
type: "purchase"
|
|
ZcyAnnouncement2:
|
|
category_id: 66485
|
|
name: "结果公告"
|
|
type: "result"
|
|
ZcyAnnouncement3:
|
|
category_id: 66485
|
|
name: "合同公告"
|
|
type: "contract"
|
|
ZcyAnnouncement4:
|
|
category_id: 66485
|
|
name: "更正公告"
|
|
type: "correction"
|
|
ZcyAnnouncement5:
|
|
category_id: 66485
|
|
name: "招标文件预公示"
|
|
type: "pre_announcement"
|
|
ZcyAnnouncement6:
|
|
category_id: 66485
|
|
name: "单一来源公示"
|
|
type: "single_source"
|
|
ZcyAnnouncement7:
|
|
category_id: 66485
|
|
name: "电子卖场公示"
|
|
type: "electronic_market"
|
|
ZcyAnnouncement10:
|
|
category_id: 66485
|
|
name: "履约验收公示"
|
|
type: "acceptance"
|
|
ZcyAnnouncement11:
|
|
category_id: 66485
|
|
name: "工程类公告"
|
|
type: "engineering"
|
|
ZcyAnnouncement20:
|
|
category_id: 66485
|
|
name: "框架协议征集公告"
|
|
type: "framework_agreement"
|
|
ZcyAnnouncement21:
|
|
category_id: 66485
|
|
name: "框架协议入围结果公告"
|
|
type: "framework_result"
|
|
ZcyAnnouncement23:
|
|
category_id: 66485
|
|
name: "框架协议成交结果汇总公告"
|
|
type: "framework_summary"
|
|
"61-266648":
|
|
category_id: 66485
|
|
name: "采购意向公开"
|
|
type: "intention"
|