मुख्य सामग्री पर जाएँ
Skillpedia
वेब स्क्रैपिंग27k · #9965

baoyu-url-to-markdown

यह क्या करती है

यह स्किल वेब पेज को साफ़ markdown टेक्स्ट के रूप में सहेजती है। यह उन पाठकों और शोधकर्ताओं के लिए है जो लेख या थ्रेड को पढ़ने योग्य रूप में रखना चाहते हैं।

कब इस्तेमाल करें

  • ✓जब आप किसी वेब पेज को markdown फ़ाइल के रूप में सहेजना चाहते हैं।
  • ✓जब आप किसी YouTube वीडियो का ट्रांस्क्रिप्ट टेक्स्ट के रूप में चाहते हैं।
  • ✓जब आप किसी Hacker News थ्रेड को बाद में पढ़ने के लिए सहेजना चाहते हैं।

Skill का लिंक

https://github.com/JimLiu/baoyu-skills/blob/main/skills/baoyu-url-to-markdown/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/JimLiu/baoyu-skills/blob/main/skills/baoyu-url-to-markdown/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“यह लेख पेज एक markdown फ़ाइल के रूप में सहेजिए, जिसे मैं रख सकूँ।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

आपका एजेंट Chrome में पेज खोलता है, जहाँ उस साइट के लिए खास तरीका हो वहाँ उसे इस्तेमाल करता है, सामग्री को markdown में बदलता है, और जब आपको लॉग इन करना हो या कोई जाँच पास करनी हो तो प्रतीक्षा करता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

URL to Markdown

User Input Tools

When this skill prompts the user, follow this tool-selection rule (priority order):

  1. Prefer built-in user-input tools exposed by the current agent runtime — e.g., AskUserQuestion, request_user_input, clarify, ask_user, or any equivalent.
  2. Fallback: if no such tool exists, emit a numbered plain-text message and ask the user to reply with the chosen number/answer for each question.
  3. Batching: if the tool supports multiple questions per call, combine all applicable questions into a single call; if only single-question, ask them one at a time in priority order.

Concrete AskUserQuestion references below are examples — substitute the local equivalent in other runtimes.

CLI Setup

The CLI source is vendored in {baseDir}/scripts/lib; scripts/package.json installs only third-party runtime dependencies.

  1. {baseDir} = this SKILL.md's directory
  2. ${BUN} = bun if installed; otherwise suggest installing Bun
  3. If {baseDir}/scripts/node_modules is missing: ${BUN} install --cwd {baseDir}/scripts
  4. ${READER} = {baseDir}/scripts/baoyu-fetch (substitute everywhere below)

Preferences (EXTEND.md)

First one found wins:

Priority Path Scope
1 .baoyu-skills/baoyu-url-to-markdown/EXTEND.md Project
2 ${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-url-to-markdown/EXTEND.md XDG
3 $HOME/.baoyu-skills/baoyu-url-to-markdown/EXTEND.md User home

Found → read and apply. Not found → BLOCKING first-time setup: ask the questions in references/config/first-time-setup.md (Media, Output, Save — all in one call) before any conversion, write EXTEND.md, confirm "Preferences saved to [path]", then continue. Never create EXTEND.md with silent defaults.

Key Default Values CLI mapping
download_media ask ask (prompt each time) / 1 (always) / 0 (never) 1 → --download-media (requires --output)
default_output_dir empty (= ./url-to-markdown/) path or empty Agent builds --output <dir>/{domain}/{slug}.md; not a direct flag

Value priority: CLI arguments → EXTEND.md → skill defaults.

Usage

${READER} <url>                                          # headless, markdown to stdout
${READER} <url> --output article.md --download-media     # save with local media
${READER} <url> --wait-for interaction --output a.md     # login/CAPTCHA: auto-detect and continue
${READER} <url> --wait-for force --output a.md           # manual: Enter to continue
${READER} <url> --format json --output a.json
${READER} <url> --adapter youtube --output transcript.md

Options

Option Description
<url> URL to fetch
--output <path> Output file path (default: stdout)
--format <type> markdown (default) or json
--json Shorthand for --format json
--adapter <name> Force adapter: x, youtube, hn, or generic (default: auto-detect)
--headless Force headless Chrome
--wait-for <mode> none (default), interaction, or force
--wait-for-interaction Alias for --wait-for interaction
--wait-for-login Alias for --wait-for interaction
--timeout <ms> Page load timeout (default: 30000)
--interaction-timeout <ms> Login/CAPTCHA wait timeout (default: 600000 = 10 min)
--interaction-poll-interval <ms> Interaction poll interval (default: 1500)
--download-media Download images/videos to local imgs/ and videos/, rewrite links. Requires --output
--media-dir <dir> Base directory for downloaded media (default: --output directory)
--cdp-url <url> Reuse existing Chrome DevTools Protocol endpoint
--browser-path <path> Custom Chrome/Chromium binary path
--chrome-profile-dir <path> Chrome user data directory (default: BAOYU_CHROME_PROFILE_DIR env or ./baoyu-skills/chrome-profile)
--debug-dir <dir> Write debug artifacts (document.json, markdown.md, page.html, network.json)

Quality Gate

Headless capture is provisional: some sites silently return low-quality content with exit code 0. Inspect the saved markdown after every headless run, using references/quality-gate.md for the checklist, recovery steps, and capture modes.

Output Path

baoyu-fetch does not generate path

अक्सर पूछे जाने वाले सवाल

जिन पेजों पर लॉग इन चाहिए, उनका क्या?

स्किल इंटरैक्शन प्रतीक्षा मोड का उपयोग करके आपके लॉग इन करने या जाँच पास करने तक रुक सकती है।

किन साइटों के लिए खास हैंडलिंग है?

X या Twitter, YouTube ट्रांस्क्रिप्ट और Hacker News थ्रेड के लिए अंतर्निहित हैंडलिंग है।

सामान्य पेज कैसे बदले जाते हैं?

सामान्य पेज Defuddle नाम के सामग्री-निष्कर्षण टूल से markdown में बदले जाते हैं।

जानकारी

लेखक का मूल विवरण

Fetch any URL and convert to markdown using baoyu-fetch CLI (Chrome CDP with site-specific adapters). Built-in adapters for X/Twitter, YouTube transcripts, Hacker News threads, and generic pages via Defuddle. Handles login/CAPTCHA via interaction wait modes. Use when user wants to save a webpage as markdown.

repo: JimLiu/baoyu-skills

लोकप्रियता

GitHub स्टार
27k
रैंकिंग में स्थान
#9965
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

release-skills

27k

यह आपके एजेंट को किसी भी प्रोजेक्ट के रिलीज़ में मार्गदर्शन देती है: वर्ज़न बढ़ाना, changelog अपडेट करना और GitHub release या tag प्रकाशित करना।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

baoyu-article-illustrator

27k

यह आपके एजेंट को लेख में चित्र जोड़ने में मदद करती है, उन जगहों को खोजकर जहाँ विज़ुअल चाहिए, और एक ही शैली में इमेज बनाकर।

डिज़ाइनइमेज और आइकन

baoyu-comic

27k

यह आपके एजेंट को पैनल, कला शैलियों और लहजों के साथ शैक्षिक कॉमिक बनाना दिखाती है, जैसे जीवनी या ट्यूटोरियल।

डिज़ाइनइमेज और आइकन

baoyu-compress-image

27k

यह आपके एजेंट को इमेज फ़ाइलों को WebP या PNG में बदलकर छोटा करने देती है, स्वचालित टूल चयन के साथ, ताकि वे तेज़ी से लोड हों।

डिज़ाइनइमेज और आइकन

मिलती-जुलती skills