Generic-ize boykisser URL

This commit is contained in:
askiiart 2023-11-09 09:11:10 -06:00
parent b2d721e9bc
commit 63b42f9629
Signed by untrusted user who does not match committer: askiiart
GPG key ID: BC3800E55FB54D67
2 changed files with 1 additions and 13 deletions

View file

@ -5,7 +5,7 @@ import json
# Replace with a known-404 page for whatever you want. Doing this so the nginx version is accurate.
url_404 = 'https://askiiart.net/sdlfjsadljfs'
html_404 = str(requests.get(url_404).text)
boykisser_url = 'https://askiiart.net/assets/boykisser.png'
boykisser_url = '/boykisser.png'
gandalf_url = '/you.gif'
try:

View file

@ -1,12 +0,0 @@
import csv
import json
data = {}
with open('status-codes.tsv', 'r') as tsvfile:
reader = csv.reader(tsvfile, delimiter=';')
for row in reader:
data[row[0]] = row[1]
with open('status-codes.json', 'w') as jsonfile:
json.dump(data, jsonfile, indent=4)