Skip to content

Commit

Permalink
Fix AP News article's title (#8086)
Browse files Browse the repository at this point in the history
  • Loading branch information
ninboy authored Nov 27, 2021
1 parent 32c47e9 commit e9eebb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routes/apnews/topics.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e9eebb1

Please sign in to comment.