From 63b42f9629a5aba0299749b7da867d92e6f09909 Mon Sep 17 00:00:00 2001 From: askiiart Date: Thu, 9 Nov 2023 09:11:10 -0600 Subject: [PATCH] Generic-ize boykisser URL --- nginx-create-pages.py | 2 +- tsv-to-json.py | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) delete mode 100644 tsv-to-json.py diff --git a/nginx-create-pages.py b/nginx-create-pages.py index b05de00..b289631 100644 --- a/nginx-create-pages.py +++ b/nginx-create-pages.py @@ -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: diff --git a/tsv-to-json.py b/tsv-to-json.py deleted file mode 100644 index b65a435..0000000 --- a/tsv-to-json.py +++ /dev/null @@ -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) \ No newline at end of file