Files
RSSHub/lib/v2/stratechery/index.js
T
2024-02-29 00:55:47 +08:00

24 lines
867 B
JavaScript

import buildData from '@/utils/common-config';
module.exports = async (ctx) => {
const link = 'https://stratechery.com/';
ctx.set(
'data',
await buildData({
link,
url: link,
title: 'Stratechery by Ben Thompson',
author: 'Ben Thompson',
description: 'Stratechery provides analysis of the strategy and business side of technology and media, and the impact of technology on society. ',
item: {
item: 'article',
title: `$('article > header > h1 > a').text()`,
link: `$('article > header > h1 > a').attr('href')`,
pubDate: `parseDate($('article .entry-date').attr('datetime'))`,
description: `$('article > .entry-content').html().replace(/%/g, '%')`,
},
})
);
};