2024-10-08 22:44:42 +08:00

24 lines
777 B
TypeScript

import type { NewsItem, SourceID } from "@shared/types"
import weibo from "./weibo"
import zaobao from "./zaobao"
import v2ex from "./v2ex"
import ithome from "./ithome"
import zhihu from "./zhihu"
export const sourcesFn = {
weibo,
zaobao,
v2ex,
ithome,
"peopledaily": defineRSSSource("https://feedx.net/rss/people.xml", {
hiddenDate: true,
}),
"zhihu": zhihu,
"sputniknewscn": defineRSSHubSource("/sputniknews/news/chinese"),
"douyin": defineFallbackSource("douyin"),
"aljazeeracn": defineRSSSource("https://feedx.net/rss/aljazeera.xml"),
"toutiao": defineFallbackSource("toutiao"),
"wallstreetcn": defineRSSHubSource("/wallstreetcn/live"),
"36kr-quick": defineRSSHubSource("/36kr/newsflashes"),
} as Record<SourceID, () => Promise<NewsItem[]>>