Skip to content

hot today news rank。今日热榜,今日热门新闻。通过爬虫采集数据,并进行可视化展示的项目。项目包含前端(Vue2 + Element-UI + Iconpark 图标库)和后端(Python + FastAPI),数据存储在 PostgreSQL 数据库中。提供 Docker 部署建议以简化后端部署流程,前端通过 npm build 后可部署至 Nginx。

Notifications You must be signed in to change notification settings

datehoer/hot-rank-web

Folders and files

NameName
Last commit message
Last commit date
Mar 5, 2025
Mar 5, 2025
Nov 2, 2024
Nov 2, 2024
Nov 2, 2024
Mar 3, 2025
Mar 5, 2025
Mar 5, 2025
Feb 27, 2025
Dec 31, 2024
Feb 27, 2025
Dec 6, 2024
Mar 3, 2025
Mar 3, 2025
Dec 4, 2024
Dec 5, 2024
Dec 23, 2024
Nov 2, 2024
Dec 17, 2024

Repository files navigation

今日热榜 (Today's Hot Rankings)

通过爬虫采集数据,并进行可视化展示 (Data collection through web crawling and visualization display)

爬虫项目(spider project): https://github.com/datehoer/hotToday

demo: 原网站 => https://www.hotday.uk/

前后端项目 (Frontend and Backend Project):

  • 前端 (Frontend): vue2 + element-ui + iconpark图标库
  • 后端 (Backend): python + fastapi

后端部署建议(Backend Deployment Recommendations):

docker编译镜像后使用下方命令启动docker容器,之后更新代码只需要重启容器即可(在不添加新的文件/库的情况下)

After building the Docker image, use the command below to start the Docker container. Afterward, updating the code only requires restarting the container (as long as you are not adding new files or libraries).

2025.3.3 更新:

  • 修改了数据库改为了postgresql,原本的mongodb占用内存太大进行了替换
  • 增加了整体的速率限制
docker run -itd --name hotrank -v /var/www/hotday.uk/feed:/app/rss_feed.xml -v /var/www/hotday.uk/feed_with_ai:/app/rss_feed_today_top_news.xml -v /opt/hot-rank-web/app.py:/app/app.py -v /opt/hot-rank-web/parse_detail.py:/app/parse_detail.py -v /opt/hot-rank-web/common.py:/app/common.py -v /opt/hot-rank-web/config.py:/app/config.py -p 127.0.0.1:7545:7545 hotrank:v0.1

前端部署建议(Frontend Deployment Recommendations): npm build后将文件复制到nginx文件夹即可 After running npm build, copy the resulting files to the Nginx directory.

效果图1

效果图2

效果图3

效果图4

效果图5

About

hot today news rank。今日热榜,今日热门新闻。通过爬虫采集数据,并进行可视化展示的项目。项目包含前端(Vue2 + Element-UI + Iconpark 图标库)和后端(Python + FastAPI),数据存储在 PostgreSQL 数据库中。提供 Docker 部署建议以简化后端部署流程,前端通过 npm build 后可部署至 Nginx。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published