跳到正文
TakoAPI
返回技能列表

pls-url-to-markdown

由 mattvalenta 提供

Web & Frontend Development
602下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Fetch URLs and convert web pages to clean Markdown for AI processing or knowledge bases.

描述

该技能的功能

Fetches web pages and converts HTML content to clean Markdown using Python libraries or CLI tools. Supports article body extraction, code block preservation, and retry logic for failed requests.

Stripping HTML to clean Markdown removes navigation, ads, and boilerplate that inflate token usage and reduce LLM response quality.

何时使用

  • Converting blog posts into Markdown for a local knowledge base
  • Feeding article content to an LLM without HTML noise
  • Archiving documentation pages as plain text files
  • Extracting main content from news articles for summarization
  • Batch converting web pages to Markdown for offline reading

示例工作流

输入

User asks: convert https://example.com/article to Markdown

智能体
  1. 1

    Fetch the URL using the requests library

  2. 2

    Parse HTML with BeautifulSoup to locate article or main element

  3. 3

    Convert extracted HTML fragment to Markdown using markdownify

  4. 4

    Preserve code blocks with triple-backtick formatting

  5. 5

    Write output to a .md file or return as string

输出

A clean Markdown file containing only the article body with properly formatted headings, links, and code blocks

安装

clawhub install mattvalenta/pls-url-to-markdown

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接