Files
mostovik-backend/src/apps/parsers/clients/__init__.py
Aleksandr Meshchriakov 199d871923
Some checks failed
CI/CD Pipeline / Code Quality Checks (push) Failing after 1m28s
CI/CD Pipeline / Build Docker Images (push) Has been cancelled
CI/CD Pipeline / Push to Gitea Registry (push) Has been cancelled
CI/CD Pipeline / Run Tests (push) Has been cancelled
feat(parsers): add proverki.gov.ru parser with sync_inspections task
- Add InspectionRecord model with is_federal_law_248, data_year, data_month fields
- Add ProverkiClient with Playwright support for JS-rendered portal
- Add streaming XML parser for large files (>50MB)
- Add sync_inspections task with incremental loading logic
  - Starts from 01.01.2025 if DB is empty
  - Loads both FZ-294 and FZ-248 inspections
  - Stops after 2 consecutive empty months
- Add InspectionService methods: get_last_loaded_period, has_data_for_period
- Add Minpromtorg parsers (certificates, manufacturers)
- Add Django Admin for parser models
- Update README with parsers documentation and changelog
2026-01-21 20:16:25 +01:00

23 lines
738 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""
Клиенты для парсинга внешних источников данных.
Каждый источник имеет изолированный клиент, который:
- Принимает настройки (proxy и т.д.) через конструктор
- Возвращает типизированные dataclass объекты
- Не зависит от Django ORM
"""
from apps.parsers.clients.base import BaseHTTPClient
from apps.parsers.clients.minpromtorg import (
IndustrialProductionClient,
ManufacturesClient,
)
from apps.parsers.clients.proverki import ProverkiClient
__all__ = [
"BaseHTTPClient",
"IndustrialProductionClient",
"ManufacturesClient",
"ProverkiClient",
]