Commit Graph
5 Commits
Author SHA1 Message Date
Dmitry 045fc41660 Refactor loader and processor documentation; enhance index module with README 2026-04-28 21:04:24 +03:00
Dmitry 29e1ee26fb Вынос логики предметного указателя в отдельный модуль 2026-04-26 19:50:23 +03:00
Dmitry 56c54f504b gg 2026-04-26 15:40:50 +03:00
Dmitry 0b41577a42 Add loader and processor modules with documentation and output files
- Implemented loader in `modules/loader.py` to download HTML pages using curl and urllib.
- Created processor in `modules/processor.py` for processing the text of the Russian Criminal Code (УК РФ).
- Added README files for both loader and processor explaining their functionality and usage.
- Generated output files including original text, prepared text, and subject index in CSV and JSON formats.
2026-04-16 21:38:00 +03:00
Dmitry 502f48a279 Add web crawler for legal documents
- Implemented a new crawler module to extract text and links from legal documents.
- Added a loader module to handle HTML downloads with error handling and retries.
- Created a main script to initiate the crawling process on a specified URL.
- Defined functions for normalizing URLs, extracting links, checking terminal pages, and extracting text content.
- Updated project metadata with dependencies and versioning in pyproject.toml and uv.lock.
2026-04-16 18:44:27 +03:00