关于 jina
jina 是一项用于读取和提取 URL 内容、搜索网站及抓取网页内容的技能,适合需要网页文本或搜索结果的场景。它通过 Refly 工作流执行,并从工具调用结果中提取文本。
主要功能
- 01提取 URL 页面内容
- 02执行网站搜索
- 03限定特定站点搜索
- 04抓取网页内容
适用场景
- 01提取文章正文
- 02搜索指定网站的内容
- 03获取网页文本用于后续处理
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ refly-ai/ refly-skills --skill jina安装后在 Claude Code 中输入/jina确认已加载。
附带文件README.md
详细介绍
Jina
使用 Jina 从 URL 提取内容并进行搜索。适用于以下场景:(1) 读取并提取任意 URL 的内容;(2) 执行指定网站的搜索;或 (3) 抓取网页内容。
输入
以 JSON 格式提供输入:
{
"url": "URL to read and extract content from (e.g., https://example.com/article)",
"query": "Search query for finding relevant content (e.g., 'AI workflow automation')",
"site": "Optional: specific site to search within (e.g., 'github.com' to search only GitHub)"
}
执行(模式 B:文本/数据)
步骤 1:运行技能并获取运行 ID
RESULT=$(refly skill run --id skpi-jqzppbf80ss2qz3kx7wtqwsw --input '{
"url": "https://example.com/article",
"query": "AI workflow"
}')
RUN_ID=$(echo "$RESULT" | jq -r '.payload.workflowExecutions[0].id')
# RUN_ID is we-xxx format, use this for workflow commands
步骤 2:在浏览器中打开工作流并等待完成
open "https://refly.ai/workflow/c-ee1nlrsdlebaodpn5fvs3sj2"
refly workflow status "$RUN_ID" --watch --interval 30000
步骤 3:提取文本内容
# Get text content from toolcalls
CONTENT=$(refly workflow toolcalls "$RUN_ID" --files --latest | jq -r '.payload.nodes[].content')
echo "$CONTENT"
预期输出
- 类型:文本内容
- 格式:提取的 URL 内容或搜索结果
- 操作:向用户展示内容
规则
遵循基础技能工作流:~/.claude/skills/refly/SKILL.md
评论
支持 Markdown