15 lines
504 B
TypeScript
Raw Normal View History

2024-10-05 17:20:49 +08:00
import type { NewsItem, SourceID } from "@shared/types"
2024-10-04 15:36:03 +08:00
import weibo from "./weibo"
import zaobao from "./zaobao"
2024-10-03 13:16:14 +08:00
2024-10-05 17:20:49 +08:00
export const sourcesFn = {
2024-10-05 23:55:30 +08:00
"peopledaily": defineRSSSource("https://feedx.net/rss/people.xml"),
2024-10-03 13:16:14 +08:00
weibo,
2024-10-05 23:55:30 +08:00
"douyin": defineFallbackSource("douyin"),
2024-10-04 15:36:03 +08:00
zaobao,
2024-10-05 23:55:30 +08:00
"toutiao": defineFallbackSource("toutiao"),
"wallstreetcn": defineRSSHubSource("/wallstreetcn/live"),
"36kr-quick": defineRSSHubSource("/36kr/newsflashes"),
2024-10-05 01:22:41 +08:00
// "36kr": kr,
2024-10-05 17:20:49 +08:00
} as Record<SourceID, () => Promise<NewsItem[]>>