Files
RSSHub/lib/routes/finology/most-viewed.ts
T
Nishant Singhandrjnishant530 a1d85656fb fix(Finology): fixed Finology routes to new standards (#18023)
* fix: finology

* use ofetch from '@/utils/ofetch';

* comments changes

* Discard changes to lib/types.ts

---------

Co-authored-by: rjnishant530 <singhnisant530@gmail.com>
2025-01-04 20:12:57 +08:00

28 lines
761 B
TypeScript

import { Route } from '@/types';
import { commonHandler } from './category';
export const route: Route = {
path: '/most-viewed',
categories: ['finance'],
example: '/finology/most-viewed',
radar: [
{
source: ['insider.finology.in/most-viewed'],
target: '/most-viewed',
},
],
name: 'Most Viewed',
maintainers: ['Rjnishant530'],
handler,
url: 'insider.finology.in/most-viewed',
};
async function handler() {
const extra = {
description: (topic: string) => `Check out the most talked-about articles among our readers! ${topic}`,
date: false,
selector: `div.card`,
};
return await commonHandler('https://insider.finology.in', '/most-viewed', extra);
}