Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Whois parser for domain whois information parsing in Go(Golang).

License

NotificationsYou must be signed in to change notification settings

likexian/whois-parser

Repository files navigation

LicenseGoDocGo Report CardBuild StatusCode Cover

WhoisParser is a simple Go module for domain whois information parsing.

Overview

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

Verified Extensions

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.

Binary distributions

For binary distributions of whois information query and parsing, please downloadwhois release tool.

Installation

go get github.com/likexian/whois-parser

Importing

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

Documentation

Visit the docs onGoDoc

Example

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)}

Whois information query

Please refer towhois

License

Copyright 2014-2024Li Kexian

Licensed under the Apache License 2.0

Donation

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

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp