Basic scripst for updating neocities stuff

This commit is contained in:
2024-09-05 15:23:33 -07:00
parent b96391d813
commit fea2ed5d51
2 changed files with 36 additions and 0 deletions

7
scripts/compare.py Normal file
View File

@@ -0,0 +1,7 @@
import hashlib
with open('public/tags/index.xml') as file:
data = hashlib.sha1(file.read().encode('utf-8'))
remote = '99d66a9e171feaf11be88b831bc69c55d85c1b4b'
print(remote == data.hexdigest())