yzqzss
9db3698d54
All checks were successful
Gitea Go Release Actions / Release Go Binary (amd64, linux) (push) Successful in 50s
Gitea Go Release Actions / Release Go Binary (arm64, darwin) (push) Successful in 47s
Gitea Go Release Actions / Release Go Binary (arm64, linux) (push) Successful in 1m14s
Gitea Go Release Actions / Release Go Binary (amd64, darwin) (push) Successful in 39s
Gitea Go Release Actions / Release Go Binary (amd64, windows) (push) Successful in 1m9s
Gitea Go Release Actions / Release Go Binary (arm, linux) (push) Successful in 1m6s
|
||
---|---|---|
.gitea/workflows | ||
cmd/cnblogs_posts_list | ||
cmd_disabled/cnblogs_rss_detect | ||
pkg | ||
.gitignore | ||
go.mod | ||
go.sum | ||
README.md |
cnblogs archiver
How can I help?
Binary
Go to release page, downlaod cnblogs_posts_list
and run it.
WARNING: DO NOT run cnblogs_posts_list
concurrently (on same IP), you may be banned by cnblogs.
With Docker
export ARCHIVIST=<your_node_name> # a string that can uniquely identify your node (for example: bob-gcloud-514). (Legal characters: letters, numbers, -, _)
if [[ -z "$ARCHIVIST" ]]; then
echo "WARN: ARCHIVIST must be set"
exit 1
fi
_image="icecodexi/saveweb:cnblogs"
docker pull "${_image}" \
&& docker stop cnblogs
docker rm -f cnblogs \
&& docker run --env ARCHIVIST="$ARCHIVIST" --restart always \
--volume /etc/localtime:/etc/localtime:ro \
--cpu-shares 512 --memory 512M --memory-swap 512M \
--detach --name cnblogs \
"${_image}"
Archiving stages
stage1:detect all blogids (finished)
run cnblogs_rss_detect
NOTE: cnblogs_rss_detect
is finished, you don't need to run it.
stage2:iterate all blogids and collect all posts' URLs (running)
run cnblogs_posts_list