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

190
Views
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
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!