From e9eebb199888a09ff39d0441fd71193dcb3acd72 Mon Sep 17 00:00:00 2001 From: ninboy Date: Sat, 27 Nov 2021 02:31:51 -0500 Subject: [PATCH] Fix AP News article's title (#8086) --- lib/routes/apnews/topics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/apnews/topics.js b/lib/routes/apnews/topics.js index 5cdb0d20b..dd2437d10 100644 --- a/lib/routes/apnews/topics.js +++ b/lib/routes/apnews/topics.js @@ -23,7 +23,7 @@ module.exports = async (ctx) => { .slice(0, 5) .map((index, item) => { item = $(item); - const title = item.find('h1[class^=Component-h1]').text(); + const title = item.find('h3[class^=Component-heading-]').text(); const link = item.find('a[class^=Component-headline-]').attr('href'); const pubDate = item.find('span[class^=Timestamp]').attr('title'); const text = item.find('div[class^=content]').text();