Fix AP News article's title (#8086)
This commit is contained in:
parent
32c47e942f
commit
e9eebb1998
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue