I use node-fetch , and I get the body of the site this way:
import fetch from 'node-fetch';
(async () => {
const response = await fetch('link');
const body = await response.text().
console.log(body);
})()
The console displays the full body of the entire page. But I want to get a specific element with a certain class. How do I change the code to do this?