# 连南瑶族自治县·政务公开
# http://www.liannan.gov.cn/zwgk/
#
# DOM 结构（2026-04-27 实测）：
#   列表: <ul class="newsList"><li class="first"><span class="date">YYYY-MM-DD</span>
#           <a href title="…">…</a></li> × N</ul>
#   详情: <div class="title">标题</div>  <div class="info">主办：…</div>
#         <div class="content">正文…</div>

site_id: liannan_zwgk
site_name: 连南瑶族自治县·政务公开
base_url: http://www.liannan.gov.cn
default_strategy: httpx
concurrency: 1
interval_sec: 10
enabled: true
respect_robots: true

default_column:
  list_selector:
    row: ".newsList li, div.pageList li, ul.list3 li"
    href: "a::attr(href)"
    title: "a::attr(title), a::text"
    date: "span.date::text, span::text"
  pagination:
    type: path_pattern
    pattern: "index_{page}.html"
    start: 2
    max_pages: 30
  detail:
    title: >-
      h1.article-title::text, h1.title::text, h1::text,
      div.article-title::text, div.title::text
    publish_time: >-
      div.info span.date::text, span.date::text, span.time::text,
      div.info span::text, em.time::text
    source: >-
      span.source::text, div.info span.source::text, div.info em::text
    content: >-
      div.article-content, div.content, div.TRS_Editor, div.article
    attachment_css: >-
      a[href$='.pdf'], a[href$='.doc'], a[href$='.docx'],
      a[href$='.xls'], a[href$='.xlsx'], a[href$='.zip'], a[href$='.wps'],
      a.nfw-cms-attachment, a[href*='/attachment/']

columns: []
