Fetch As Markdown

Fetch a URL using Playwright and convert its content to Markdown.

paulirish Updated

File contents

Fetch As Markdown Skill

This skill allows fetching any web page, rendering it using a headless browser (Playwright) to ensure client-side content is loaded, and converting the resulting HTML into clean Markdown using markpaste.

Usage

node agents/skills/fetch-as-markdown/scripts/fetch-as-markdown.ts <URL>

Example:

node agents/skills/fetch-as-markdown/scripts/fetch-as-markdown.ts https://example.com

The script will output the converted markdown to stdout.

paulirish/dotfiles/tree/main/agents/skills/fetch-as-markdown commit 32ce891262

Frequently asked questions

npx skillmds@latest add paulirish/fetch-as-markdown