request('https://example.com', function (error, response, html) {
if (!error && response.statusCode == 200) {
const $ = cheerio.load(html);
console.log($("meta[property='og:title']").attr("content"));
//or
console.log($("meta").get(1).attr("content")); // index of the meta tag
}
});