web-fetch-linkup

Web Fetch with Linkup

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "web-fetch-linkup" with this command: npx skills add romainjeff/linkup-fetch-skill/romainjeff-linkup-fetch-skill-web-fetch-linkup

Web Fetch with Linkup

Fetch clean web content via the Linkup API using a standalone Python script.

Prerequisites

A .env file in the skill directory (.claude/skills/web-fetch-linkup/.env ) with:

LINKUP_API_KEY=your_api_key_here

See .env.example for the template.

Workflow

Step 1: Collect the URL

Get the URL from the user via AskUserQuestion or directly if provided in the request.

Step 2: Fetch the content

Run the script using Bash:

python3 .claude/skills/web-fetch-linkup/fetch.py "<URL>"

Options:

Flag Effect

--no-render-js

Disable JavaScript rendering (default: enabled)

--extract-images

Include image URLs in output

--include-raw-html

Include raw HTML in output

Examples:

Standard fetch (JS rendering enabled)

python3 .claude/skills/web-fetch-linkup/fetch.py "https://example.com/article"

Static page, faster

python3 .claude/skills/web-fetch-linkup/fetch.py "https://example.com" --no-render-js

With images

python3 .claude/skills/web-fetch-linkup/fetch.py "https://example.com" --extract-images

Step 3: Parse the response

The script outputs JSON on stdout with:

  • url — The fetched URL

  • markdown — The extracted content in Markdown format

  • images — (only with --extract-images ) List of image URLs

  • rawHtml — (only with --include-raw-html ) Raw HTML source

Step 4: Save the content

Create a file in fetched-content/ with the format:

Filename: {domain}-{YYYYMMDD-HHmmss}.md

Structure:


source: <URL> fetched_at: <ISO timestamp>

<Title inferred from content>

<Extracted markdown content>

Step 5: Confirm

Inform the user of the created file path.

Exit codes

Code Meaning

0 Success

1 .env missing or LINKUP_API_KEY not set

3 401 — Invalid or expired API key

4 429 — Rate limit exceeded

5 Other HTTP error

6 Network error (DNS, timeout, etc.)

Error handling

Error Action

Exit 1 Check .claude/skills/web-fetch-linkup/.env exists with LINKUP_API_KEY

Exit 3 API key is invalid or expired — get a new one at https://app.linkup.so

Exit 4 Rate limit — wait before retrying

Exit 5 Check stderr for HTTP status details

Exit 6 Network issue — retry with --no-render-js if timeout

Usage examples

Fetch an article:

"Fetch the content of https://example.com/article"

Fetch documentation:

"Use linkup to scrape https://docs.example.com/api"

Dynamic page:

"Extract content from this React page: https://app.example.com/dashboard"

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Leads

Leads - command-line tool for everyday use

Registry SourceRecently Updated
General

Bmi Calculator

BMI计算器。BMI计算、理想体重、健康计划、体重追踪、儿童BMI、结果解读。BMI calculator with ideal weight, health plan. BMI、体重、健康。

Registry SourceRecently Updated
General

Blood

Blood — a fast health & wellness tool. Log anything, find it later, export when needed.

Registry SourceRecently Updated
General

Better Genshin Impact

📦BetterGI · 更好的原神 - 自动拾取 | 自动剧情 | 全自动钓鱼(AI) | 全自动七圣召唤 | 自动伐木 | 自动刷本 | 自动采集/挖矿/锄地 | 一条龙 | 全连音游 - UI A better genshin impact, c#, auto-play-game, automatic, g...

Registry SourceRecently Updated