Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

199
Visualizações
Web scrapping using axios and jsdom isn't getting image 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);

}
})();

I tried above code to get the image url from the website above but it always throws error which I don't know the cause is when I tried scrapping first using console I was successfully here is the code I used in console scrapping

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

Any suggestions regarding the matter would be of great help. About node.js libraries yes I have them all installed and it's working perfectly.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda