Skip to content

flashaoeylz/Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

News Minimalist (clone)

一个极简新闻聚合网站,风格接近 https://www.newsminimalist.com/。

特点

  • 极简纯文本界面,仅展示标题和来源
  • 无需 API Key,基于主流媒体 RSS 源聚合
  • 实时抓取并在内存中做 5 分钟缓存
  • 支持 JSON 输出,便于二次开发

运行要求

  • Python 3.9+

快速开始

  1. 安装依赖 pip install -r requirements.txt

  2. 启动服务(任选其一)

    • 直接运行: python app/main.py
    • 或使用 Flask: python -m flask --app app.main run --host 0.0.0.0 --port 8000
  3. 访问

目录结构

  • app/
    • main.py Flask 应用与聚合逻辑
    • templates/index.html 极简页面模板
  • wsgi.py 部署用入口(如 gunicorn/uwsgi)
  • requirements.txt 依赖

配置

  • 修改 app/main.py 中的 FEEDS 列表可增删 RSS 源
  • 修改 CACHE_TTL_SECONDS 可调整缓存时间(默认 5 分钟)

RSS 源(默认)

  • Reuters Top News / World News
  • BBC World
  • The Guardian World
  • NPR News
  • CNN Top Stories
  • Al Jazeera
  • New York Times Home

生产部署示例(gunicorn) pip install gunicorn gunicorn -w 2 -b 0.0.0.0:8000 wsgi:app

许可证

  • 代码 MIT 许可;请遵循各新闻源的使用条款与 robots 协议。

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •