Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/b/y/byd.me-HEAD/byd.me/app.py   byd.me(Download)
def whois_query(domain):
    try:
        tld = domain.split('.')[-1]
        raw_info = utils.whois(config.WHOIS_SERVER[tld], domain)
        whois_info = raw_info.replace('\n', '<br/>').decode('utf-8')
def w(domain):
    try:
        tld = domain.split('.')[-1]
        whois_info = utils.whois(config.WHOIS_SERVER[tld], domain)
        if not whois_info:
    except:
        return json.dumps({'code': 1, 'message': '抱歉,发生了错误,亲'})
    whois_info = utils.whois(config.WHOIS_SERVER[tld], domain)
    return json.dumps({'code': 0, 'whois': whois_info})