Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created June 27, 2019 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/a2065eeb0f0820ff5b22462cfb056fe5 to your computer and use it in GitHub Desktop.
Save parzibyte/a2065eeb0f0820ff5b22462cfb056fe5 to your computer and use it in GitHub Desktop.
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