Python scripts to control dlink router. Tested on Dlink GO-RT-AC750
These python packages are required to run this script- requests
- json
- hmac
The script will first authenticate using the user id and password. Then the events "WAN-1.DHCP.RELEASE" and "WAN-1.DHCP.RENEW" are issued to request for a new IP address.
Authentication is performed using simple post methods. HMAC library is used for generating the hex codes required for password encoding. Requests package is used for the get and post methods.