mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-06 21:18:57 +08:00
chore(deps-dev): bump prettier from 1.19.1 to 2.0.2
This commit is contained in:
@@ -17,16 +17,10 @@ module.exports = async (ctx) => {
|
||||
const order_name = $('li.selected a').text();
|
||||
|
||||
const list = $('li.clearfix')
|
||||
.map(function() {
|
||||
.map(function () {
|
||||
const info = {
|
||||
title: $(this)
|
||||
.find('div.discuss-main.clearfix a')
|
||||
.text()
|
||||
.trim()
|
||||
.replace('\n', ' '),
|
||||
link: $(this)
|
||||
.find('div.discuss-main.clearfix a[rel]')
|
||||
.attr('href'),
|
||||
title: $(this).find('div.discuss-main.clearfix a').text().trim().replace('\n', ' '),
|
||||
link: $(this).find('div.discuss-main.clearfix a[rel]').attr('href'),
|
||||
};
|
||||
return info;
|
||||
})
|
||||
@@ -45,9 +39,7 @@ module.exports = async (ctx) => {
|
||||
const response = await got.get(itemUrl);
|
||||
const $ = cheerio.load(response.data);
|
||||
|
||||
const date_value = $('span.post-time')
|
||||
.text()
|
||||
.split(' ')[1];
|
||||
const date_value = $('span.post-time').text().split(' ')[1];
|
||||
|
||||
const description = $('.nc-post-content').html();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user