remove proxies script

This commit is contained in:
Amolith 2021-10-10 14:14:59 -04:00
parent c81a05353c
commit 408f061bbb
Signed by: Amolith
GPG Key ID: 5548AD9930655715
1 changed files with 0 additions and 24 deletions

View File

@ -1,24 +0,0 @@
import json
with open('json/proxies.json') as f:
x = json.load(f)
text = ""
for i in x["cards"]:
text += f"""
<div class="card">
<h1>{i["name"]}</h1>
<p>{i["description"]}</p>
<a href="{i["link"]}"><button class="button">{i["button_text"]}</button></a>
"""
if i["tor"] != "#":
text += f'<a href="{i["tor"]}"><button class="tor">Tor</button></a>'
text += "</div>"
with open('_site/proxies/index.html') as f:
y = f.read()
y = y.replace('<!-- Static cards -->', text)
with open('_site/proxies/index.html', 'w') as f:
f.write(y)