Skip to content

Instantly share code, notes, and snippets.

View RonnyW0ng's full-sized avatar
🎯
Focusing

RonnyW0ng RonnyW0ng

🎯
Focusing
View GitHub Profile
@RonnyW0ng
RonnyW0ng / dnspod.py
Last active April 9, 2020 08:52
update domain dns via DNSPOD
#! /usr/bin/env python3
import requests as http
import json
# DNSPOD API ID
ID = '00000'
# DNSPOD API TOKEN
TOKEN = 'xxxxxxxxxxxxxxxxxxxx'
LOGIN_TOKEN = ID + ',' + TOKEN