https://github.com/xuender/webhash
网页摘要计算
https://github.com/xuender/webhash
golang hash highwayhash shell watch webpage
Last synced: 2 months ago
JSON representation
网页摘要计算
- Host: GitHub
- URL: https://github.com/xuender/webhash
- Owner: xuender
- License: mit
- Created: 2020-05-09T01:48:05.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-28T09:04:24.000Z (over 4 years ago)
- Last Synced: 2025-02-09T19:40:51.409Z (4 months ago)
- Topics: golang, hash, highwayhash, shell, watch, webpage
- Language: Go
- Size: 79.1 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Webhash
网页摘要计算, 使用 [HighwayHash](https://github.com/google/highwayhash) 算法
## 安装
### 有Golang环境
```shell
go get github.com/xuender/webhash/cmd/webhash
```### 无Golang环境
wget
```shell
sh -c "$(wget -O- https://github.com/xuender/webhash/raw/master/install.sh)"
```curl
```shell
sh -c "$(curl -fsSL https://github.com/xuender/webhash/raw/master/install.sh)"
```## 增加摘要网页
```shell
webhash add https://api.github.com/repos/golang/go/milestones/72
```## 检查网页内容修改
```shell
webhash check
# 或者
webhash
```## 更新网页摘要
```shell
webhash update
```## 监视网页修改
```shell
webhash watch
```## 定时执行
设置定时任务 `crontab -e`
```shell
# 每小时执行一次
0 * * * * ${HOME}/bin/webhash watch
```