Question: Requests, Cheerio, and Nodemailer. When I run from command tri.node.js it gives me all the artists name from Bilboard. but I want all the artist
Requests, Cheerio, and Nodemailer.

When I run from command tri.node.js
it gives me all the artists name from Bilboard.
but I want all the artist name to send to email by using n0demailer. I implemented nodemailer code but I don't know how to send the artists I found from billboard website to email.
This is my node mailer code

var request = require(' request'); var cheerio require( 'cheerio') request('https://www.billboard.com/charts/rap-song', function (error, response, html) if (error&& response.statusCode200) t var $ = cheerio. load (html); ('a.chart-row artist').each(function(i, element) consolelog ( $ ( this ) . text ( ) ) ; ?: var request = require(' request'); var cheerio require( 'cheerio') request('https://www.billboard.com/charts/rap-song', function (error, response, html) if (error&& response.statusCode200) t var $ = cheerio. load (html); ('a.chart-row artist').each(function(i, element) consolelog ( $ ( this ) . text ( ) )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
