Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

193
Vistas
The site is loading late, so the axios.get function is missing, how to fix that problem?

I tried that but didn't work:

const https = require('https');
const fs = require("fs");

const options = {
  hostname: 'dlive.tv',
  port: 443,
  path: '/IXCOSANXCI',
  method: 'GET',
};
var html = ""
function func(){
  fs.writeFileSync("./response.txt",html)
  console.log("writed")
}

const req = https.request(options, res => {
  console.log(`statusCode: ${res.statusCode}`);

  res.on('data', d => {
    html += d
  });

  setTimeout(func, 5 * 1000)
});

req.on('error', error => {
  console.error(error);
});

req.end();

normally if you try this, the messages in the dlive chat will come unloaded:

const axios = require("axios");
const fs = require("fs");
(async () => {
  const response = await axios.get(`https://dlive.tv/IXCOSANXCI`);
  fs.writeFileSync("./response.txt",response.data)
})();

shortly Is there a way to get the entire site? i.e. response after 5 seconds or more

I use node.js v12.20.10

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda