gemini-fetch

Solid

Fetch web content from URLs using Gemini CLI when WebFetch fails or is blocked (403, rate-limited, bot-blocked sites). Use on "unable to fetch" errors or when user asks to fetch via Gemini.

AI & Automation 47 stars 4 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 87/100

Stars 20%
56
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Gemini Fetch Fetch web content from URLs that Claude Code's WebFetch can't access, using Gemini CLI as a proxy. ## How this skill is invoked **Manual** (`/gemini-fetch <url> [instruction]`): URL comes from `$0`, optional instruction from `$1`. **Auto-trigger** (WebFetch failure): The skill body is loaded as context. Extract the target URL from the conversation (the URL that WebFetch failed on) and any user instruction, then build the command yourself. ### Manual usage examples ``` /gemini-fetch https://www.reddit.com/r/ClaudeAI/hot /gemini-fetch https://www.reddit.com/r/ClaudeAI/hot "list top 10 post titles with scores" /gemini-fetch https://example.com/blocked-page "extract the main content as markdown" ``` If manually invoked without a URL, display the examples above and stop. ## Execution Build and run the following command: ```bash gemini -y -p "<prompt>" -o text 2>/dev/null ``` ### Prompt construction **Important:** Escape the URL for shell safety. Replace any single quotes in the URL with `'\''` before embedding it in the prompt. If an instruction is provided: ``` Use run_shell_command to run: curl -sL -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36' '<escaped-url>' Then from the fetched content: <instruction> ``` If no instruction is provided: ``` Use run_shell_command to run: curl -sL -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36' '<escaped-url>' Then convert the fetched HTML to ...

Details

Author
LeeJuOh
Repository
LeeJuOh/claude-code-zero
Created
4 months ago
Last Updated
4 days ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category