-
-
Save parzibyte/a2065eeb0f0820ff5b22462cfb056fe5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
obtener_pagina("https://parzibyte.me") | |
.then(html => remover_etiquetas(html)) | |
.then(texto => guardar_texto_en_bd(texto)) | |
.then(() => { | |
// Hemos terminado | |
}) | |
.catch(err => { | |
// Aquí manejamos el error | |
}) | |
.finally(() => { | |
// Se ejecuta siempre, sin importar que haya errores | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment