commit
0525c28050
@ -0,0 +1,18 @@
|
|||||||
|
import requests
|
||||||
|
|
||||||
|
TOKEN = "EASYDNS_TOKEN"
|
||||||
|
DOMAINS = [
|
||||||
|
"example.example.com",
|
||||||
|
]
|
||||||
|
USERNAME = "EASYDNS_USERNAME"
|
||||||
|
|
||||||
|
# NO LONGER CONFIG
|
||||||
|
|
||||||
|
TLD = DOMAINS[0].split(".")[-1] # can only update one TLD at a time
|
||||||
|
URL = f"https://{USERNAME}:{TOKEN}@api.cp.easydns.com/dyn/generic.php"
|
||||||
|
|
||||||
|
for domain in DOMAINS:
|
||||||
|
resp = requests.get(URL, {"hostname": domain, "TLD": TLD})
|
||||||
|
code = resp.status_code
|
||||||
|
content = str(resp.content)
|
||||||
|
print(f"CODE: {code}:\n{content}")
|
Loading…
Reference in new issue