百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
U

unfurl

> 编程语言
开源

从 stdin 提供的 URL 中提取部分内容

1.3K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

从 stdin 提供的 URL 中提取部分内容

解开

从 stdin 提供的 URL 中提取部分内容

安装

如果您已安装并配置了 Go:

▶ go install github.com/tomnomnom/unfurl@latest

否则 下载您平台的最新二进制文件 提取它并将其移动到您的 $PATH 中的某个位置(例如 /usr/bin/):

▶ wget https://github.com/tomnomnom/unfurl/releases/download/v0.0.1/unfurl-linux-amd64-0.0.1.tgz
▶ tar xzf unfurl-linux-amd64-0.0.1.tgz
▶ sudo mv unfurl /usr/bin/

使用方法

unfurl 会处理在 stdin 中提供的 URL;这些 URL 可能来自如下所示的文件:

▶ cat urls.txt
https://sub.example.com/users?id=123&name=Sam
https://sub.example.com/orgs?org=ExCo#about
http://example.net/about#contact

域

您可以使用 domains 模式从 URL 中提取域名:

▶ cat urls.txt | unfurl domains
sub.example.com
sub.example.com
example.net

如果您不想输出重复值,可以使用 -u 或 --unique 标志:

▶ cat urls.txt | unfurl --unique domains
sub.example.com
example.net

-u/--unique 标志适用于所有模式。

Apex 网域

您可以使用 apexes 模式提取域的顶端部分(例如 http://sub.example.com`` 中的 example.com` ):

123

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Go

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言