tldextract:使用公共后缀列表从URL提取根域,子域名和tld

时间:2021-05-03 13:59:03
【文件属性】:
文件名称:tldextract:使用公共后缀列表从URL提取根域,子域名和tld
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-03 13:59:03
Go 葡聚糖 使用从URL中提取根域名,子域名,tld。 安装 安装tldextract: go get github.com/joeguo/tldextract 要运行单元测试,请在tldextract的源目录($ GOPATH / src / github.com / joeguo / tldextract)中运行以下命令: go test 例子 package main import ( "fmt" "github.com/joeguo/tldextract" ) func main () { urls := [] string { "git+ssh://www.github.com:8443/" , "http://media.forums.theregister.co.uk" , "http://218.15.32.76" , "http://google.com?q=cats"
【文件预览】:
tldextract-master
----tldextract.go(5KB)
----tldextract_test.go(5KB)
----doc.go(640B)
----README.md(1KB)
----.gitignore(252B)

网友评论