Created
February 4, 2017 22:04
-
-
Save FZX/3bacd26d847ca048743204d9ebad9130 to your computer and use it in GitHub Desktop.
Python3 Check domain with Godaddy API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# vim:fenc=utf-8 | |
# Distributed under terms of the MIT license. | |
import requests | |
def check_domain(domain): | |
data = {"domain": domain} | |
respond = requests.get("https://api.ote-godaddy.com/v1/domains/available", params=data) | |
respond_result = respond.json()["available"] | |
return respond_result | |
print(check_domain("google.com")) |
Author
FZX
commented
Feb 4, 2017
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment