Ir al contenido principal

Entradas

Mostrando entradas de agosto, 2026

Desarrollo de sistema gerencial (parte 2)

¿Empezamos con la migración de metricas_mensuales ? Sí. Perfecto. Vamos a crear la migración para la tabla metricas_mensuales . 📊 Crear la Migración bash php artisan make:migration create_metricas_mensuales_table php // database/migrations/xxxx_xx_xx_create_metricas_mensuales_table.php <?php use Illuminate \ Database \ Migrations \ Migration ; use Illuminate \ Database \ Schema \ Blueprint ; use Illuminate \ Support \ Facades \ Schema ; return new class extends Migration { public function up ( ) : void { Schema :: create ( 'metricas_mensuales' , function ( Blueprint $table ) { $table -> id ( ) ; // Período $table -> year ( 'anio' ) ; $table -> unsignedTinyInteger ( 'mes' ) ; // KPIs financieros $table -> decimal ( 'valor_presupuestos_aceptados' , 12 , 2 ) -> default ( 0 ) ; $table -> decimal ( '...

Web scraping (parte 2)

Playwright vs Puppeteer vs Selenium   Playwright is the recommended default for new web automation and scraping projects in 2026 due to its built-in auto-waiting , multi-browser support (Chromium, Firefox, WebKit), and superior performance.   It offers the best balance of speed, reliability, and developer experience, including features like a built-in trace viewer and code generator. Puppeteer is optimal for Chrome/Chromium-only tasks where lightweight execution and direct Chrome DevTools Protocol (CDP) access are prioritized.   It is ideal for Node.js developers needing a simple API for screenshots, PDFs, or basic scraping, but lacks native multi-browser capabilities.  Selenium remains the standard for legacy systems , Java/C# environments , and projects requiring broadest browser compatibility (including older browsers like Internet Explorer).   While it has a larger ecosystem and supports more programming languages, it generally suffers...