style: auto format
This commit is contained in:
parent
8c66b20220
commit
fde08f1e79
|
|
@ -92,11 +92,13 @@ const basicInfoDict = {
|
|||
const getInfoUrlList = async (url) => {
|
||||
const response = await got(url);
|
||||
const $ = cheerio.load(response.data);
|
||||
const infoList = $('div.sl').toArray().map((item) => ({
|
||||
title: $('a', item).attr('title'),
|
||||
url: `${rootUrl}${$('a', item).attr('href')}`,
|
||||
pubDate: parseDate(timezone($('div > div:nth-child(4)', item).html().trim()), +8),
|
||||
}));
|
||||
const infoList = $('div.sl')
|
||||
.toArray()
|
||||
.map((item) => ({
|
||||
title: $('a', item).attr('title'),
|
||||
url: `${rootUrl}${$('a', item).attr('href')}`,
|
||||
pubDate: parseDate(timezone($('div > div:nth-child(4)', item).html().trim()), +8),
|
||||
}));
|
||||
return infoList;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue