Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Security

Authors: Alfred Basta, Melissa Zgola

1st Edition

1435453905, 978-1435453906

More Books

Students also viewed these Databases questions

Question

What is DDL?

Answered: 1 week ago