How bhumihar4756/master-txt works
Project type and purpose
• This is a standalone Python tool (not a web front-end) designed to download and manage video/PDF content from multiple educational platforms—both DRM-protected and non-DRM.
• It uses a plugin architecture so that each supported platform (e.g., Classplus, Khan GS, Physics Wallah) is implemented in its own module under plugins/.
File structure
• Top-level files:
• main.py – the orchestrator/entrypoint
• config.py – constants and environment-variable configuration
• Dockerfile, app.json, heroku.yml – containerization and Heroku deployment
• Directories:
• plugins/ – each submodule implements a “downloader” plugin
• master/ – likely output or staging area for downloaded content
• Notice the plugin loader pattern: main.py dynamically imports plugins/*.py, finds classes or functions that know how to contact each service.
README for additional insights
• Quick-start on Heroku implies 12-factor deployment: the tool runs as a container, reads config from env vars, writes to its local filesystem.
• Emphasizes DRM-secured and non-DRM content from multiple platforms.
• Guides customizing main.py or plugins/master.py for new platforms or command changes.
Don’t overthink—capture all logical elements
• Dynamic loading step (e.g., “import plugins/*.py at startup”).
• File tree briefly under components if space allows.