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

191
Views
El desguace web usando axios y jsdom no obtiene la imagen src
const axios = require('axios'); const jsdom = require('jsdom'); const {JSDOM} = jsdom; (async () => { const html = await axios.get('https://mangadex.org/titles/latest'); const dom = new JSDOM(html.data); const title = dom.window.document.querySelectorAll(".chapter-feed__container a div img")[0].src; if(title) { console.log(title); } })();

Intenté el código anterior para obtener la URL de la imagen del sitio web anterior, pero siempre arroja un error que no sé la causa es cuando intenté desechar primero usando la consola. Tuve éxito aquí está el código que usé en la consola.

 var cc=document.querySelectorAll(".chapter-feed__container a div img")[0].src; cc;

Cualquier sugerencia sobre el tema sería de gran ayuda. Acerca de las bibliotecas de node.js, sí, las tengo todas instaladas y funciona perfectamente.

about 4 years ago · Juan Pablo Isaza
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!