Skip to content

Wrapper around py-ipwhois which has superior potassium

License

Notifications You must be signed in to change notification settings

rikonor/ipwhois

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ipwhois

Wrapper around py-ipwhois.

To use this package you must have Python and ipwhois installed.

Usage

package main

import (
	"fmt"
	"log"

	"github.com/rikonor/ipwhois"
)

func main() {
	res, err := ipwhois.LookupIP("8.8.8.8")
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%s", res)
}

The User-Agent requests are made with can be overridden via ipwhois.LookupIPWithUA.

License

MIT