Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

118
Views
Use node-fetch v2.6 para obtener HTML de un sitio web

Actualmente mi código es el siguiente:

 const fetch = require("node-fetch"); (async function () { console.log(await fetch("https://a.website.in-ht.ml")); })()

Sin embargo, solo devuelve datos en el sitio web, a diferencia del HTML. ¿Alguien sabe cuál puede ser el problema?

(Como dice el título, estoy usando v2.6 no 3.0+)

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Prueba esto:

 const fetch = require("node-fetch"); (async function () { const res = await fetch("https://a.website.in-ht.ml") const html = await res.text() console.log(html) })()

Esto toma la respuesta de texto en lugar de la respuesta completa.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!