register preston hashes and urls with hash archive
#!/bin/bash | |
# Register all preston urls with hash-archive.org | |
# | |
# Please replace "deeplinker\.bio" instances below with you own escaped hostname of your Preston instance. | |
# see https://preston.guoda.bio on how to install preston | |
# | |
preston ls -l tsv | grep Version | cut -f1,3 | tr '\t' '\n' | grep -v "deeplinker\.bio/\.well-known/genid" | sort | uniq | sed -e 's/hash:\/\/sha256/https:\/\/deeplinker.bio/g' | sed -e 's/^/https:\/\/hash-archive.org\/api\/enqueue\//g' | xargs -L1 curl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment