Generic-ize boykisser URL
This commit is contained in:
parent
b2d721e9bc
commit
63b42f9629
2 changed files with 1 additions and 13 deletions
|
@ -5,7 +5,7 @@ import json
|
||||||
# Replace with a known-404 page for whatever you want. Doing this so the nginx version is accurate.
|
# Replace with a known-404 page for whatever you want. Doing this so the nginx version is accurate.
|
||||||
url_404 = 'https://askiiart.net/sdlfjsadljfs'
|
url_404 = 'https://askiiart.net/sdlfjsadljfs'
|
||||||
html_404 = str(requests.get(url_404).text)
|
html_404 = str(requests.get(url_404).text)
|
||||||
boykisser_url = 'https://askiiart.net/assets/boykisser.png'
|
boykisser_url = '/boykisser.png'
|
||||||
gandalf_url = '/you.gif'
|
gandalf_url = '/you.gif'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -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)
|
|
Loading…
Reference in a new issue