📦 songquanpeng / zhihu-archiver

每日自动抓取知乎热榜,之后转换成 Markdown 文件并构造静态网站

29 stars 14 forks 👁 29 watching
📥 Clone https://github.com/songquanpeng/zhihu-archiver.git
HTTPS git clone https://github.com/songquanpeng/zhihu-archiver.git
SSH git clone git@github.com:songquanpeng/zhihu-archiver.git
CLI gh repo clone songquanpeng/zhihu-archiver
Loading files...
📄 README.md

知乎热榜备份

描述

每日自动备份知乎热榜,并构建静态网站。

在线预览:https://zhihu.justsong.cn/

仓库地址:https://github.com/songquanpeng/zhihu-archiver

部署

  • 首先 fork 本项目;
  • 之后在你的服务器下 clone 你的 fork,并进入项目目录;
  • 配置 Python 环境并安装依赖:
sudo apt install python-is-python3 python3-pip
   pip install -r requirements.txt
  • 给脚本执行权限:chmod u+x ./update.sh
  • 之后设置 crontab 如下:
0 18 * * * cd /path/to/zhihu-archiver && ./update.sh
  • 再之后去仓库设置页面启用 GitHub Pages,选择 master 分支下的 docs 目录。