# b1t0nese/lmparser architecture

> Architecture diagram of the GitHub repository b1t0nese/lmparser, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/b1t0nese/lmparser
- Repository: https://github.com/b1t0nese/lmparser

## Overview

LMParser combines a Yandex LMS task-and-solution downloader with a checked-in collection of ready-made course solutions. The documented workflow is to obtain student cookies, provide course and group IDs, fetch LMS records, and save task descriptions and solution metadata under the output directory. The repository also preserves examples across API, Arcade, Qt, and web development. The parser’s exact internal orchestration is only partly excerpted, so the graph limits parser call relationships to those visible in the excerpts and README.

Main entry points: [`liceylmparser.py`](https://github.com/b1t0nese/lmparser/blob/main/liceylmparser.py) (Parser CLI), [`get_cookie.py`](https://github.com/b1t0nese/lmparser/blob/main/get_cookie.py) (Cookie capture), [`LMParserData`](https://github.com/b1t0nese/lmparser/tree/main/LMParserData) (Parsed task files)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["LMS access"]
  node_cookie_tool["Cookie capture<br/>[get_cookie.py]"]
end

subgraph group_parser["Parser and output"]
  node_parser_cli["Parser CLI<br/>[liceylmparser.py]"]
  node_task_fetch["Task retrieval<br/>[liceylmparser.py]"]
  node_solution_fetch["Solution retrieval<br/>[liceylmparser.py]"]
  node_description_convert["Description conversion<br/>[liceylmparser.py]"]
  node_readme_writer["Task metadata writer<br/>[liceylmparser.py]"]
  node_output["Parsed task files"]
end

subgraph group_solutions["Course solutions"]
  node_api_solutions["API exercises"]
  node_arcade_solutions["Arcade exercises"]
  node_qt_solutions["Qt exercises"]
  node_web_solutions["Web exercises"]
end

node_student(("Student"))
node_lms["Yandex LMS"]

node_student -->|"captures cookies"| node_cookie_tool
node_student -->|"provides IDs"| node_parser_cli
node_cookie_tool -->|"supplies cookies"| node_parser_cli
node_parser_cli -->|"requests tasks"| node_lms
node_parser_cli -.->|"invokes"| node_task_fetch
node_parser_cli -.->|"invokes"| node_solution_fetch
node_task_fetch -->|"fetches task"| node_lms
node_solution_fetch -->|"fetches solution"| node_lms
node_parser_cli -.->|"converts descriptions"| node_description_convert
node_parser_cli -.->|"writes metadata"| node_readme_writer
node_readme_writer -->|"saves files"| node_output

click node_cookie_tool "https://github.com/b1t0nese/lmparser/blob/main/get_cookie.py"
click node_parser_cli "https://github.com/b1t0nese/lmparser/blob/main/liceylmparser.py"
click node_task_fetch "https://github.com/b1t0nese/lmparser/blob/main/liceylmparser.py"
click node_solution_fetch "https://github.com/b1t0nese/lmparser/blob/main/liceylmparser.py"
click node_description_convert "https://github.com/b1t0nese/lmparser/blob/main/liceylmparser.py"
click node_readme_writer "https://github.com/b1t0nese/lmparser/blob/main/liceylmparser.py"
click node_output "https://github.com/b1t0nese/lmparser/tree/main/LMParserData"
click node_api_solutions "https://github.com/b1t0nese/lmparser/tree/main/LMParserData/1461/API%203.%20%D0%A0%D0%B5%D1%88%D0%B5%D0%BD%D0%B8%D0%B5%20%D0%B7%D0%B0%D0%B4%D0%B0%D1%87%20%D0%BD%D0%B0%20API%20%D0%AF%D0%BD%D0%B4%D0%B5%D0%BA%D1%81.%D0%9A%D0%B0%D1%80%D1%82"
click node_arcade_solutions "https://github.com/b1t0nese/lmparser/tree/main/LMParserData/1461/Arcade%208.%20%D0%A1%D1%86%D0%B5%D0%BD%D1%8B%2C%20GUI%20%D0%B8%20%D1%87%D0%B0%D1%81%D1%82%D0%B8%D1%86%D1%8B.%20%D0%98%20%D0%BB%D0%B5%D0%BD%D1%82%D0%BE%D1%87%D0%BA%D0%BE%D0%B9%20%D0%BF%D0%BE%D0%B2%D1%8F%D0%B6%D0%B5%D0%BC"
click node_qt_solutions "https://github.com/b1t0nese/lmparser/tree/main/LMParserData/1461/QT%207.%20%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5%20%D0%B2%20%D0%91%D0%94%2C%20%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%B0%20%D1%81%20SQL-%D1%82%D0%B0%D0%B1%D0%BB%D0%B8%D1%86%D0%B0%D0%BC%D0%B8%20%D0%B8%20%D0%BE%D1%82%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20%D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D1%85%20%D0%B2%20PyQT.%20%D0%A7%D0%B0%D1%81%D1%82%D1%8C%202"
click node_web_solutions "https://github.com/b1t0nese/lmparser/tree/main/LMParserData/1461/WEB%206.%20REST-API.%20Flask-restful"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cookie_tool toneBlue
class node_parser_cli,node_task_fetch,node_solution_fetch,node_description_convert,node_readme_writer,node_output toneAmber
class node_api_solutions,node_arcade_solutions,node_qt_solutions,node_web_solutions toneMint
class node_student,node_lms toneIndigo
```

## Components

### LMS access

- [Cookie capture](https://github.com/b1t0nese/lmparser/blob/main/get_cookie.py): `get_cookie.py`

### Parser and output

- [Parser CLI](https://github.com/b1t0nese/lmparser/blob/main/liceylmparser.py): `liceylmparser.py`
- [Task retrieval](https://github.com/b1t0nese/lmparser/blob/main/liceylmparser.py): `liceylmparser.py`
- [Solution retrieval](https://github.com/b1t0nese/lmparser/blob/main/liceylmparser.py): `liceylmparser.py`
- [Description conversion](https://github.com/b1t0nese/lmparser/blob/main/liceylmparser.py): `liceylmparser.py`
- [Task metadata writer](https://github.com/b1t0nese/lmparser/blob/main/liceylmparser.py): `liceylmparser.py`
- [Parsed task files](https://github.com/b1t0nese/lmparser/tree/main/LMParserData): `LMParserData`

### Course solutions

- [API exercises](https://github.com/b1t0nese/lmparser/tree/main/LMParserData/1461/API%203.%20%D0%A0%D0%B5%D1%88%D0%B5%D0%BD%D0%B8%D0%B5%20%D0%B7%D0%B0%D0%B4%D0%B0%D1%87%20%D0%BD%D0%B0%20API%20%D0%AF%D0%BD%D0%B4%D0%B5%D0%BA%D1%81.%D0%9A%D0%B0%D1%80%D1%82): `LMParserData/1461/API 3. Решение задач на API Яндекс.Карт`
- [Arcade exercises](https://github.com/b1t0nese/lmparser/tree/main/LMParserData/1461/Arcade%208.%20%D0%A1%D1%86%D0%B5%D0%BD%D1%8B%2C%20GUI%20%D0%B8%20%D1%87%D0%B0%D1%81%D1%82%D0%B8%D1%86%D1%8B.%20%D0%98%20%D0%BB%D0%B5%D0%BD%D1%82%D0%BE%D1%87%D0%BA%D0%BE%D0%B9%20%D0%BF%D0%BE%D0%B2%D1%8F%D0%B6%D0%B5%D0%BC): `LMParserData/1461/Arcade 8. Сцены, GUI и частицы. И ленточкой повяжем`
- [Qt exercises](https://github.com/b1t0nese/lmparser/tree/main/LMParserData/1461/QT%207.%20%D0%92%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5%20%D0%B2%20%D0%91%D0%94%2C%20%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%B0%20%D1%81%20SQL-%D1%82%D0%B0%D0%B1%D0%BB%D0%B8%D1%86%D0%B0%D0%BC%D0%B8%20%D0%B8%20%D0%BE%D1%82%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5%20%D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D1%85%20%D0%B2%20PyQT.%20%D0%A7%D0%B0%D1%81%D1%82%D1%8C%202): `LMParserData/1461/QT 7. Введение в БД, работа с SQL-таблицами и отображение данных в PyQT. Часть 2`
- [Web exercises](https://github.com/b1t0nese/lmparser/tree/main/LMParserData/1461/WEB%206.%20REST-API.%20Flask-restful): `LMParserData/1461/WEB 6. REST-API. Flask-restful`

### Other components

- **Student**
- **Yandex LMS**

## Connections

- Student → Cookie capture: captures cookies (evidence: `README.md`)
- Student → Parser CLI: provides IDs (evidence: `README.md`)
- Cookie capture → Parser CLI: supplies cookies (evidence: `README.md`)
- Parser CLI → Yandex LMS: requests tasks (evidence: `liceylmparser.py`)
- Parser CLI → Task retrieval: invokes (evidence: `liceylmparser.py`)
- Parser CLI → Solution retrieval: invokes (evidence: `liceylmparser.py`)
- Task retrieval → Yandex LMS: fetches task (evidence: `liceylmparser.py`)
- Solution retrieval → Yandex LMS: fetches solution (evidence: `liceylmparser.py`)
- Parser CLI → Description conversion: converts descriptions (evidence: `liceylmparser.py`)
- Parser CLI → Task metadata writer: writes metadata (evidence: `liceylmparser.py`)
- Task metadata writer → Parsed task files: saves files (evidence: `README.md`)
