Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started