fetch-content
Installation
SKILL.md
fetch-content
Turn any URL or file into clean, analyzable text with source metadata. One script, auto-detects source type.
Quick start
uv run <this-skill-dir>/scripts/fetch.py "<url-or-file>"
No uv? Fallback:
pip install yt-dlp youtube-transcript-api trafilatura pymupdf requests
python3 <this-skill-dir>/scripts/fetch.py "<url-or-file>"
Output goes to stdout: YAML front matter (title, author, date, views/likes, word count) followed by the text. Add --json for structured output, --lang de to prefer another transcript language.