تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

url2pdf

بواسطة guoqiao

Browser & Automation
946التنزيلات وفق ما يذكره clawskills.sh
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Convert URL to PDF suitable for mobile reading.

الوصف

ما الذي تفعله هذه المهارة

Converts a webpage URL to a PDF formatted for mobile reading. Uses Playwright with a headless Chromium browser to render the page accurately. The output PDF path is returned for delivery to the user.

Uses a real browser engine to render pages accurately, capturing styles and layout that simpler HTML-to-PDF converters miss.

متى تستخدمها

  • Save a long article for offline reading on your phone
  • Archive a recipe page as a portable document
  • Convert documentation to PDF for commute reading
  • Preserve a news article before it goes behind a paywall
  • Share a webpage as a file attachment

مثال على سير العمل

الإدخال

User asks: 'Save https://example.com/article as a PDF for mobile'

الوكيل
  1. 1

    Runs url2pdf.py with the provided URL as an argument

  2. 2

    Playwright renders the page in a headless Chromium browser

  3. 3

    Script outputs the path to the generated PDF file

  4. 4

    Agent sends the PDF to the user as a document message

الإخراج

PDF file of the webpage delivered to the user, optimized for mobile screen dimensions

المتطلبات

  • uv package manager installed
  • Chromium browser installed via: uvx playwright install chromium

التثبيت

clawhub install guoqiao/url2pdf

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط