Actualizar robot.js

This commit is contained in:
2026-03-22 22:26:20 +00:00
parent 18ac325328
commit 9dc99a0a55

View File

@@ -113,6 +113,20 @@ async function main() {
// ========================================== // ==========================================
// 🏥 MULTIASISTENCIA (PAGINACIÓN ANTIBALAS Y DOBLE RECARGA) // 🏥 MULTIASISTENCIA (PAGINACIÓN ANTIBALAS Y DOBLE RECARGA)
// ========================================== // ==========================================
async function runMultiasistencia(ownerId, user, pass, gremiosDB) {
try {
const browser = await chromium.launch({ headless: HEADLESS, args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-dev-shm-usage', '--disable-gpu'] });
const context = await browser.newContext();
const page = await context.newPage();
await gotoWithRetry(page, 'https://web.multiasistencia.com/w3multi/acceso.php');
await page.fill('input[name="usuario"]', user);
await page.fill('input[type="password"]', pass);
await page.click('input[type="submit"]');
await page.waitForTimeout(4000);
await gotoWithRetry(page, 'https://web.multiasistencia.com/w3multi/frepasos_new.php?refresh=1');
await page.waitForTimeout(3000);
// --- BUCLE DE PAGINACIÓN INFALIBLE --- // --- BUCLE DE PAGINACIÓN INFALIBLE ---
let todosExpedientes = new Set(); let todosExpedientes = new Set();
let paginaActual = 1; let paginaActual = 1;