How christian-herrera/scripts works
Main Components
• “CloudFlare-dyn-dns”: Break this into two parts – one that “checks and updates” and one that “checks, updates and notifies”.
• “Web-scraping”: This branch splits into two: a basic scraping component and one with Telegram notification integration.
• “Battery-discharger”: A standalone script (likely with Linux-specific considerations) for discharging battery on Ubuntu Server.
• “Docs”: Contains service configuration guides (e.g., instructions for creating a Linux service).
Relationships and Interactions
– CloudFlare-dyn-dns components connect to the CloudFlare API.
– Telegram-bot and the Telegram-enabled web-scraping component connect to the Telegram API.
• For scripts that include submodules (e.g., utilities in Telegram or Cloudflare directories), denote that these modules form part of the overall component.
Architectural Patterns and Design Principles
• The repository is designed with separation of concerns: each script or sub-project is self-contained with its own README and configuration files.
• Notice how many components reuse similar “building block” scripts (for Telegram interactions, Cloudflare API integrations, and utilities) – this indicates a modular design.
Specify the Technologies and Frameworks
• The primary language is Python.
• Communication with external services is achieved via API calls (e.g., to CloudFlare and Telegram).
• The scripts are intended to run on Linux, which is underlined by the “Crear Servicio” documentation in docs.