diff --git a/niac_client.py b/niac_client.py index fbf2697..b2dc21e 100644 --- a/niac_client.py +++ b/niac_client.py @@ -38,17 +38,21 @@ ALLOWED_HOST = "niac.mos.ru" # Разделы, которые обходим. min_docs — нижняя граница «раздел жив»; резкое падение # против прошлого обхода ловится отдельно (expected_at_least из состояния). +# Пороги сняты с боевых страниц 18.11.2026 и стоят заметно ниже факта: +# 8, 42, 41, 10, 20, 30, 18, 2, 71, 49, 151 файл соответственно. Порог ниже факта +# вдвое — это и есть «резкое похудение раздела», которое обязано остановить обход. SECTIONS = ( {"name": "collections", "url": BASE + "collectors-tsn-2001/index.php", "min_docs": 5}, - {"name": "collections_3", "url": BASE + "collectors-tsn-2001/tsn-2001-3/index.php", "min_docs": 10}, - {"name": "collections_4", "url": BASE + "collectors-tsn-2001/tsn-2001-4/index.php", "min_docs": 5}, - {"name": "collections_5", "url": BASE + "collectors-tsn-2001/tsn-2001-5/index.php", "min_docs": 3}, - {"name": "collections_6", "url": BASE + "collectors-tsn-2001/tsn-2001-6/index.php", "min_docs": 5}, - {"name": "collections_7", "url": BASE + "collectors-tsn-2001/tsn-2001-7/index.php", "min_docs": 2}, - {"name": "collections_12", "url": BASE + "collectors-tsn-2001/tsn-2001-12/index.php", "min_docs": 1}, + {"name": "collections_3", "url": BASE + "collectors-tsn-2001/tsn-2001-3/index.php", "min_docs": 20}, + {"name": "collections_4", "url": BASE + "collectors-tsn-2001/tsn-2001-4/index.php", "min_docs": 20}, + {"name": "collections_5", "url": BASE + "collectors-tsn-2001/tsn-2001-5/index.php", "min_docs": 5}, + {"name": "collections_6", "url": BASE + "collectors-tsn-2001/tsn-2001-6/index.php", "min_docs": 10}, + {"name": "collections_7", "url": BASE + "collectors-tsn-2001/tsn-2001-7/index.php", "min_docs": 15}, + {"name": "collections_12", "url": BASE + "collectors-tsn-2001/tsn-2001-12/index.php", "min_docs": 8}, {"name": "collections_13", "url": BASE + "collectors-tsn-2001/tsn-2001-13/index.php", "min_docs": 1}, - {"name": "additions", "url": BASE + "collections-of-add-ons/index.php", "min_docs": 10}, - {"name": "indices", "url": BASE + "the-values-of-smr-recalculation/index.php", "min_docs": 5}, + {"name": "additions", "url": BASE + "collections-of-add-ons-to-the-tsn-2001/index.php", "min_docs": 30}, + {"name": "additions_13_2", "url": BASE + "collections-of-add-ons-to-the-tsn-2001-13-2/index.php", "min_docs": 20}, + {"name": "indices", "url": BASE + "the-values-of-smr-recalculation/index.php", "min_docs": 80}, ) _RATE_BOOKS = {"3", "4", "5", "6", "7"}