SuperAPI AI Directory

caoliao-qrcode-markdown-content

General & other

View repository

Updated 10-15 20:10

About this skill

Caoliao QR Code Markdown Content Retrieval

Append the .md suffix to the end of the Caoliao QR code short link to get the Markdown-formatted content of the page.

URL Format

Matching rules:https://{domain}/{segment1}/{segment2}[?query]

  • Supported domains:qr61.cn、qr71.cn、qr69.cn、h.qr61.cn
  • Path: exactly two segments (e.g., oZwrwZ/q2wR1WE), each segment consisting of alphanumeric characters
  • The URL may have query parameters at the end, which do not affect validation

Examples:

  • https://qr61.cn/oZwrwZ/q2wR1WE
  • https://qr71.cn/oZwrwZ/q2wR1WE
  • https://h.qr61.cn/oZwrwZ/q2wR1WE?a=1

Workflow

  1. Validate URL — confirm the domain is one of qr61.cn/qr71.cn/qr69.cn/h.qr61.cn , and the path is exactly two non-empty segments.

  2. Construct request URL — append .mdto the end of the path (query parameters are kept after .md ):

    https://qr61.cn/oZwrwZ/q2wR1WE       →  https://qr61.cn/oZwrwZ/q2wR1WE.md
    https://h.qr61.cn/oZwrwZ/q2wR1WE?a=1  →  https://h.qr61.cn/oZwrwZ/q2wR1WE.md?a=1
    
  3. Use the Shell tool with curl to fetch the content, choosing the corresponding command based on the operating system:

    Windows (PowerShell):

    curl.exe -L -s "https://qr61.cn/oZwrwZ/q2wR1WE.md"
    

    macOS / Linux:

    curl -L -s "https://qr61.cn/oZwrwZ/q2wR1WE.md"
    

    On Windows, you must use curl.exe instead of curl, to avoid PowerShell parsing it as Invoke-WebRequest。

  4. Return the fetched Markdown content to the user. If the request fails or returns an error, inform the user of the specific problem.

Notes

  • -L The parameter is used to follow redirects.
  • -s The parameter is used for silent output, not showing progress information.
  • If there is a trailing slash /at the end of the path, remove it first before appending .md。
  • If the URL has query parameters (?key=value),.md should be inserted between the path and ? .