feat: Chinese news sources, AI summary, todo extraction
This commit is contained in:
@ -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():
|
||||
|
||||
Reference in New Issue
Block a user