const got = require("got");
const cheerio = require('cheerio');
// get the HTML contents of "The Blue Marble" Wikipedia article
const { body } = (await got("https://en.wikipedia.org/wiki/The_Blue_Marble"));
// parse the article's HTML
const $ = cheerio.load(body);
// get the source of the first thumbnail image on the page
const imgURL = `https:${$('.thumb img').attr("src")}`;