Open tolls101 opened 8 years ago
after you have installed pygodaddy and pif, here is some sample code that I use:
import logging import sys import pygodaddy import pif
if name == "main": logging.basicConfig(filename='godaddy-dyndns.log', format='%(asctime)s %(message)s', level=logging.INFO)
sys.stdout.write("username:") username = sys.stdin.readline().rstrip('\n') sys.stdout.write("password:") password = sys.stdin.readline().rstrip('\n') client = pygodaddy.GoDaddyClient() is_logged_in = client.login(username,password) if not is_logged_in: logging.error('Login failed !') sys.exit(1)
public_ip = pif.get_public_ip()
domain = 'pv.armandology.com' client.update_dns_record(domain, public_ip) logging.info("Domain '{0}' public IP set to '{1}'".format(domain, public_ip))
I installed pygodaddy and have no idea were to go from here. Where are the config changes made? What are the "quick start" directions telling me to do? I am lost like an Easter egg.