python example for IP update with dynu python example for IP upd...

Argomento: python example for IP update with dynu

Post python example for IP update with dynu
di croquette su lunedì 12 giugno 2023

I run a IP-update python script daily for something fun. Maybe the code can be useful for you.


from requests import get

PARAMS={"hostname":"example.freeddns.org",#altenatively you use username
"password":"af1ad8c76fda2e48ea9aed2937e972ea"}#I use md5, you may also use password, IP update password, SHA-256 value
response=get("http://api.dynu.com/nic/update", params = PARAMS)

if response.text[:5] not in("good ", "nochg"):
input(response.text+"\n\nPress enter to continue")




Rispondi con citazione | Segnalare
venerdì 22 novembre 2024 15:59
Loading...