Skip to content

1978mountain/hot-rank-web

 
 

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 rank

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 52.5%
  • Python 34.0%
  • HTML 6.6%
  • JavaScript 3.1%
  • CSS 2.4%
  • Shell 0.9%
  • Dockerfile 0.5%