实际处理方法
从粘贴的 HTML 中提取链接;可提供基准 URL 来解析相对地址并区分站内、站外与特殊协议。
可复现示例
示例输入base-url=https://example.com/blog/post
---
<a href="/docs" rel="nofollow">Docs</a>
<a href="https://other.example/news">News</a>
<a href="mailto:team@example.com">Email us</a>
<a href="#details">Details</a>
预期结果 Links: 4; unique targets: 4
Internal: 1; external: 1; email: 1; phone: 0; anchors: 1; other or missing: 0
Base URL: https://example.com/blog/post
1. INTERNAL — Docs → https://example.com/docs (rel=nofollow, source=/docs)
2. EXTERNAL — News → https://other.example/news
3. EMAIL — Email us → mailto:team@example.com
4. ANCHOR — Details → #details
- 1
在“可选基准 URL 与 HTML 源码”区域粘贴内容、输入参数或选择需要处理的文件。
- 2
根据任务选择 “提取链接”;页面会在当前浏览器中完成处理。
- 3
检查“分类链接列表”中的结果,确认无误后再复制或下载。