whois-parser-go

Go module for domain whois info parse

Github stars Tracking Chart

whois-parser.go

License
GoDoc
Build Status
Go Report Card
Code Cover

whois-parser-go is a simple Go module for domain whois info parse.

Overview

This module parses the provided whois information and return a readable data struct.

Verified Extensions

It is supposed to be working with all domain extensions, but verified extensions must works, because I have checked them one by one manually.

If there is any problems, please feel free to open a new issue.

Installation

go get github.com/likexian/whois-parser-go

Importing

import (
    "github.com/likexian/whois-parser-go"
)

Documentation

Visit the docs on GoDoc

Example

result, err := whoisparser.Parse(whois_raw)
if err == nil {
    // Print the domain status
    fmt.Println(result.Domain.Status)

    // Print the domain created date
    fmt.Println(result.Domain.CreatedDate)

    // Print the domain expiration date
    fmt.Println(result.Domain.ExpirationDate)

    // Print the registrar name
    fmt.Println(result.Registrar.Name)

    // Print the registrant name
    fmt.Println(result.Registrant.Name)

    // Print the registrant email address
    fmt.Println(result.Registrant.Email)
}

Whois info query in Go

Please refer to whois-go

LICENSE

Copyright 2014-2019 Li Kexian

Licensed under the Apache License 2.0

About

Main metrics

Overview
Name With Ownerlikexian/whois-parser
Primary LanguageGo
Program languageGo (Language Count: 1)
Platform
License:Apache License 2.0
所有者活动
Created At2014-08-30 07:06:10
Pushed At2024-12-17 02:55:29
Last Commit At2024-12-17 10:55:28
Release Count88
Last Release Namev1.24.20 (Posted on )
First Release Name1.0.0 (Posted on )
用户参与
Stargazers Count306
Watchers Count5
Fork Count92
Commits Count229
Has Issues Enabled
Issues Count48
Issue Open Count5
Pull Requests Count33
Pull Requests Open Count0
Pull Requests Close Count12
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private