feat: Chinese news sources, AI summary, todo extraction

This commit is contained in:
Beast
2026-06-14 13:29:25 +08:00
parent 4cd8089480
commit 4c2ac3ab56
3 changed files with 91 additions and 4 deletions

View File

@ -7,16 +7,18 @@ from datetime import datetime, timezone, timedelta
OUTPUT = "/var/www/nav/data/news.json"
tz = timezone(timedelta(hours=8))
# RSS feeds - balanced selection of world news sources
# RSS feeds - balanced selection of world news sources (Chinese weighted)
FEEDS = [
{"name": "BBC World", "url": "http://feeds.bbci.co.uk/news/world/rss.xml", "lang": "en"},
{"name": "\u65b0\u6d6a\u65b0\u95fb", "url": "https://rss.sina.com.cn/news/china.xml", "lang": "zh"},
{"name": "\u6d8c\u62a5", "url": "https://www.ybai.com/wp-json/wp/v2/posts?per_page=10", "lang": "zh"},
{"name": "BBC \u4e2d\u6587", "url": "https://www.bbc.com/zhongwen/simp/index.xml", "lang": "zh"},
{"name": "Reuters", "url": "https://www.reutersagency.com/feed/", "lang": "en"},
{"name": "HN", "url": "https://hnrss.org/frontpage?count=10", "lang": "en"},
{"name": "Reuters", "url": "https://www.reutersagency.com/feed/", "lang": "en"},
]
MAX_PER_FEED = 8
MAX_TOTAL = 30
MAX_PER_FEED = 10
MAX_TOTAL = 40
def fetch_news():