Skip to content

beyondalbert/zhihu-archiver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

知乎热榜备份

描述

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

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

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

部署

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.0%
  • Shell 3.0%