Add boykisser, add gandalf gif to 403
This commit is contained in:
parent
f6da1671aa
commit
b2d721e9bc
4 changed files with 5 additions and 4 deletions
BIN
boykisser.jpg
Normal file
BIN
boykisser.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 79 KiB |
|
@ -6,6 +6,7 @@ import json
|
||||||
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 = 'https://askiiart.net/assets/boykisser.png'
|
||||||
|
gandalf_url = '/you.gif'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
os.mkdir('pages')
|
os.mkdir('pages')
|
||||||
|
@ -26,8 +27,8 @@ for code in codes_dict:
|
||||||
# - (300 Multiple Choices is the actual error code? Geddit?)
|
# - (300 Multiple Choices is the actual error code? Geddit?)
|
||||||
new_html = new_html.replace(
|
new_html = new_html.replace(
|
||||||
'<h1>300 Poll</h1>', '<h1>300 Poll</h1><br>57% Yes, 43% No<br>(300 Multiple Choices is the actual error code? Geddit?)')
|
'<h1>300 Poll</h1>', '<h1>300 Poll</h1><br>57% Yes, 43% No<br>(300 Multiple Choices is the actual error code? Geddit?)')
|
||||||
|
elif code == "403":
|
||||||
|
new_html = new_html.replace('<h1>403 You Shall Not Pass</h1>',
|
||||||
|
f'<h1>403 You Shall Not Pass</h1><br><img src={gandalf_url} alt=\"gandalf saying you looped infinitely\" width=\"350\"')
|
||||||
with open(f'pages/{code}.html', 'w') as new_file:
|
with open(f'pages/{code}.html', 'w') as new_file:
|
||||||
new_file.write(new_html)
|
new_file.write(new_html)
|
||||||
|
|
||||||
|
|
||||||
exit()
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head><title>403 You Shall Not Pass</title></head>
|
<head><title>403 You Shall Not Pass</title></head>
|
||||||
<body>
|
<body>
|
||||||
<center><h1>403 You Shall Not Pass</h1></center>
|
<center><h1>403 You Shall Not Pass</h1><br><img src=/you.gif alt="gandalf saying you looped infinitely" width="350"</center>
|
||||||
<hr><center>nginx/1.25.3</center>
|
<hr><center>nginx/1.25.3</center>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
BIN
you.gif
Normal file
BIN
you.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 177 KiB |
Loading…
Reference in a new issue