How happycola233/tchmaterial-parser works
Project type and purpose
• This is a desktop GUI application written in Python (single‐script monolith) whose purpose is to fetch and download PDF electronic textbooks from the “国家中小学智慧教育平台” by parsing preview page URLs, managing an Access Token for authentication, and saving the files locally with automatic naming and progress visualization.
File structure
• Top-level files:
• .github/workflows/python-app.yml – CI pipeline for linting/testing.
• requirements.txt – Python dependencies (likely including GUI and HTTP libraries).
• src/tchMaterial-parser.pyw – the entire application code (GUI + core logic).
• No separate “frontend”/“backend” folders; the project is a single‐entry Python GUI app.
• Configuration: uses platform‐specific storage: Windows Registry, ~/.config/.../data.json on Linux, in‐memory on macOS.
README for additional insights
• UI features: high-DPI adaptation, progress bar with pause/resume.
• Auth: manual Access Token input and storage.
• Batch URL parsing, automatic file naming.
• Cross‐platform support: Windows/Linux/macOS.
• External dependency: “国家中小学智慧教育平台” API endpoints.