Create a file called artists.js (or a node project) that will scrape the provided url:"url" and send an email of all artists & songs that are sung by the specified artists given via the command line. Requirements: • The specified artists must be read in via the command line • If no artist(s) are specified do not send an email • If the specified artist(s) are not found on the website, do not send an email • If the specified artist(s) are found on the website: – Send an email from an email account of your choice, to an email account of your choice (when I am testing this, I will input my own accounts for this portion) – The subject will be: “Your artist(s) are: ” followed by a list of the artist(s). Be sure to format this portion correctly i.e. if the user specifies node artists Drake Migos xxxtentacion your subject should be: Your artists are: Migos, Drake, and xxxtentacion – The email format should be the artist in bold and the song name in italics, see below 1 Things to note: • Be careful when making too many requests to a website, there is a possibility of being rate-limited • Only worry about the top 25 songs, the website is dynamic and sometimes has more or less songs depending on the day. • Don’t worry about case, it’s up to the user to ensure spelling and proper casing • Don’t worry about artists that have more than one word in their name i.e. Cardi B and Post Malone. Although we love them, it makes it tricky when reading from the command line • If the artist is included as a feature, please include that as a song i.e. if searching for Migos, please include the track - Gucci Mane Featuring Migos: I Get The Bag
Please upvote if you found this answer useful or drop-in the comment's section your queries. I will try to assist you with the best possible solution.
Get Answers For Free
Most questions answered within 1 hours.