As an user of dnspod.com (international), updating sub-domain's ip address is a common operation.
This script can update ip address of your sub-domain on dnspod automatically.
You need to change the variables as shown below:
domain = 'yourdomain.com'
record = 'your subdomain like (www)'
email = 'your dnspod account'
password = 'your dnspod password'
if you wanna execute this script per hour:
$ crontab -e
1 */1 * * * /usr/bin/python /home/pi/update_ip.py >> /home/pi/update_ip.log
如果你使用的是国内版DNSPOD, 请尝试BASE_URL替换为国内版api地址(https://dnsapi.cn)