V
V
Vivers2019-09-25 22:17:26
Node.js
Vivers, 2019-09-25 22:17:26

How does DOM parser work?

I tried to deal with DOMparser, but somehow it did not work out very well. Who can help please. I wanted to make a script so that it would take a picture from the site and add it to the embed, but the script can either get to the site or take the picture itself.

const htmlp = require("node-html-parser");

let root = htmlp.parse('sute');


let imagQ = root.querySelectorAll("body > .wrapper > #contentWrapper > #content > .content-container > .container-left > .user-profile > .user-image.mb8");
let struc = imagQ.attributes;

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question