style: auto format
This commit is contained in:
parent
acfcd0cafc
commit
52bcabde30
|
|
@ -27,7 +27,10 @@ module.exports = async (ctx) => {
|
|||
const { data } = await got(item.link);
|
||||
const $ = cheerio.load(data);
|
||||
|
||||
item.title = $('head title').text().replace(/_财新周刊频道_财新网$/, '').trim();
|
||||
item.title = $('head title')
|
||||
.text()
|
||||
.replace(/_财新周刊频道_财新网$/, '')
|
||||
.trim();
|
||||
item.pubDate = parseDate(
|
||||
$('.source')
|
||||
.text()
|
||||
|
|
@ -47,7 +50,10 @@ module.exports = async (ctx) => {
|
|||
);
|
||||
|
||||
ctx.state.data = {
|
||||
title: $('head title').text().replace(/_财新周刊频道_财新网$/, '').trim(),
|
||||
title: $('head title')
|
||||
.text()
|
||||
.replace(/_财新周刊频道_财新网$/, '')
|
||||
.trim(),
|
||||
link,
|
||||
item: items,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue