scorpiox-docs

الشبكة

جلب محتوى URL من أي عنوان باستخدام متصفح بدون واجهة. يدعم عرض الصفحات الغنية بجافاسكريبت واستخراج النصوص أو HTML أو Markdown مع أوقات انتظار قابلة للتكوين.

Linux x64Linux ARM64macOS ARM64Windows x64

العلامات والخيارات

العلم مختصر الوصف يأخذ قيمة
--checkCheck dependencies and exitلا
--format-fOutput format: text, html, or markdownنعم
--headlessRun in headless mode (default)لا
--help-hShow help messageنعم
--installInstall missing dependenciesلا
--no-headlessRun with browser visibleلا
--output-oWrite output to file instead of stdoutنعم
--wait-wWait time in ms for page load (default: 3000)نعم

أمثلة الاستخدام

Basic — Fetch a URL as Markdown
# Fetch documentation page and output as markdown scorpiox-docs https://docs.python.org/3/library/json.html # Output is printed to stdout in markdown format by default
Specify output format
# Get raw HTML scorpiox-docs --format html https://example.com # Get plain text (no markup) scorpiox-docs -f text https://developer.mozilla.org/en-US/docs/Web/HTML
Save output to file
# Save fetched content to a local file scorpiox-docs -o api-docs.md https://api.github.com/docs # Combine with format flag scorpiox-docs --format html --output page.html https://example.com
Wait for JavaScript rendering
# Wait 5 seconds for JS-heavy SPA to fully render scorpiox-docs --wait 5000 https://app.example.com/dashboard # Short form — wait 10 seconds for slow pages scorpiox-docs -w 10000 -f markdown https://react-app.example.com
Debug with visible browser
# Run with browser window visible for debugging scorpiox-docs --no-headless https://example.com # Check if browser dependencies are installed scorpiox-docs --check # Install missing dependencies automatically scorpiox-docs --install
Pipeline usage
# Pipe URL content into other tools scorpiox-docs https://changelog.com/releases | grep "v2." # Feed documentation to an AI agent for analysis scorpiox-docs -f text https://docs.example.com/api | scorpiox-agent analyze

معلومات المصدر والبناء

ملف المصدر
scorpiox/scorpiox-docs.c
أسطر الكود
464
التبعيات
libsxutil

أدوات ذات صلة