Files
RSSHub/lib/v2/liulinblog/kuaixun.js
2022-03-11 22:09:27 +08:00

18 lines
465 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
const got = require('@/utils/got');
const { processList, processItems } = require('./utils');
const host = 'https://www.liulinblog.com';
module.exports = async (ctx) => {
const url = `${host}/kuaixun`;
const response = await got(url);
const list = processList(response);
const items = await processItems(list, ctx);
ctx.state.data = {
title: '每天六十秒60秒读懂世界',
link: url,
item: items,
};
};