agentleFS
AlexisZ12AlexisZ12/tavily-skills/skills/tavily-extract/SKILL.md

tavily-extract

Skill1 starsChanged 5 months agoMITView on GitHub

通过 Tavily Extract API 提取网页内容。当用户需要从指定 URL 提取清洗后的网页内容时使用。

  • Installs packages

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Tavily 网页提取

使用 Tavily Extract API (POST /extract) 从指定 URL 提取清洗后的网页内容,返回 LLM 友好的结构化数据。

环境准备

  • Python 3.8+
  • Tavily API key(在 https://app.tavily.com 获取)
  • 安装依赖:pip install requests python-dotenv

用法

python scripts/tavily-extract.py --urls "https://en.wikipedia.org/wiki/Artificial_intelligence"

参数

参数类型默认值说明
--urlsstr必填要提取的 URL,多个用英文逗号分隔(最多 20 个)
--querystr-用户意图,用于对提取的内容块重排序
--chunks-per-sourceint3每源返回的内容片段数(1-5,仅提供 --query 时生效)
--extract-depthstrbasicbasic(每 5 个成功 URL 消耗 1 credit)/ advanced(含表格和内嵌内容,每 5 个成功 URL 消耗 2 credits)

示例

# 提取单个页面
python scripts/tavily-extract.py --urls "https://en.wikipedia.org/wiki/Artificial_intelligence"

# 提取多个页面
python scripts/tavily-extract.py --urls "https://en.wikipedia.org/wiki/AI,https://en.wikipedia.org/wiki/Machine_learning"

# 高级提取 + 内容重排序
python scripts/tavily-extract.py --urls "https://en.wikipedia.org/wiki/Artificial_intelligence" --query "AI history" --extract-depth advanced --chunks-per-source 5

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.