- Notifications
You must be signed in to change notification settings - Fork92
Whois parser for domain whois information parsing in Go(Golang).
License
likexian/whois-parser
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
WhoisParser is a simple Go module for domain whois information parsing.
This module parses the provided domain whois information and returns a readable data struct.
It is supposed to be working with all domain extensions, butverified extensions must works, because I have checked them one by one manually.
If there is any problem, please feel free to open a new issue.
For binary distributions of whois information query and parsing, please downloadwhois release tool.
go get github.com/likexian/whois-parser
import ("github.com/likexian/whois-parser")
Visit the docs onGoDoc
result,err:=whoisparser.Parse(whois_raw)iferr==nil {// Print the domain statusfmt.Println(result.Domain.Status)// Print the domain created datefmt.Println(result.Domain.CreatedDate)// Print the domain expiration datefmt.Println(result.Domain.ExpirationDate)// Print the registrar namefmt.Println(result.Registrar.Name)// Print the registrant namefmt.Println(result.Registrant.Name)// Print the registrant email addressfmt.Println(result.Registrant.Email)}
Please refer towhois
Copyright 2014-2024Li Kexian
Licensed under the Apache License 2.0
If this project is helpful, please share it with friends.
If you want to thank me, you cangive me a cup of coffee.
About
Whois parser for domain whois information parsing in Go(Golang).
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.