top of page
01 Example
Input:
{"content":"<h2 class='title'>Hello World</h2>"}
JS-Code:
const $ = cheerio.load(input.content);$('h2.title').text();
Output:
{ output: 'Hello World' }
02 Example
Input:
JS-Code:
const $ = cheerio.load((await axios.get('https://www.google.de/')).data);$('head title').text();
Output:
{ output: 'Google' }
![Screenshot 2022-09-12 at 09.56.18.png](https://static.wixstatic.com/media/d20ced_38679c75f2b74c95bfb0269bb9673341~mv2.png/v1/fill/w_410,h_374,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/Screenshot%202022-09-12%20at%2009_56_18.png)
bottom of page