Fix AP News article's title (#8086)

This commit is contained in:
ninboy 2021-11-27 02:31:51 -05:00 committed by GitHub
parent 32c47e942f
commit e9eebb1998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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();