python example for IP upd...
python example for IP update with dynu
- 主页
- 后台控制中心
- Community Forum
- Services
- Dynamic DNS Service
- python example for IP update with dynu
- Community Forum
- python example for IP update with dynu
Topic: python example for IP update with dynu
I run a IP-update python script daily for something fun. Maybe the code can be useful for you.
from requests import getPARAMS={"hostname":"example.freeddns.org",#altenatively you use username "password":"af1ad8c76fda2e48ea9aed2937e972ea"}#I use md5, you may also use password, IP update password, SHA-256 valueresponse=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")
Reply with quote | Report
Author | Topic: python example for IP update with dynu |
---|---|
croquette Joined: 2021/4/17 |
python example for IP update with dynu 2023年6月12日 4:32
I run a IP-update python script daily for something fun. Maybe the code can be useful for you.
from requests import getPARAMS={"hostname":"example.freeddns.org",#altenatively you use username "password":"af1ad8c76fda2e48ea9aed2937e972ea"}#I use md5, you may also use password, IP update password, SHA-256 valueresponse=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") |
It is currently 2024年12月18日 5:01 US Mountain Standard Time
2024年12月18日 5:01