✓ Verified 🌐 Web Scrapers ✓ Enhanced Data

Url2pdf

Convert URL to PDF suitable for mobile reading.

Rating
4.9 (108 reviews)
Downloads
811 downloads
Version
1.0.0

Overview

Convert URL to PDF suitable for mobile reading.

Complete Documentation

View Source →

URL to PDF

Given a url for a webpage, convert it to pdf suitable for mobile reading.

See examples.

Requirements

  • uv

Installation

playwright itself will be installed by uv automatically, while it also needs browser to be installed:

text
uvx playwright install chromium

Usage

bash
uv run --script ${baseDir}/url2pdf.py "${url}"
Path to pdf will be printed to stdout.

Agent Instructions

  • Run the script: Pass the url to be converted as an argument.
  • Handle Output: The script will output a path to a pdf file.
Use the message tool to send the pdf file to the user as a document message:
json
{
   "action": "send",
   "filePath": "<filepath>"
}

Installation

Terminal bash

openclaw install url2pdf
    
Copied!

💻Code Examples

uv run --script ${baseDir}/url2pdf.py "${url}"

uv-run---script-basedirurl2pdfpy-url.txt
Path to pdf will be printed to stdout.

### Agent Instructions

1. **Run the script**: Pass the url to be converted as an argument.
2. **Handle Output**: The script will output a path to a pdf file.
Use the `message` tool to send the pdf file to the user as a document message:
example.json
{
   "action": "send",
   "filePath": "<filepath>"
}

Tags

#browser_and-automation

Quick Info

Category Web Scrapers
Model Claude 3.5
Complexity One-Click
Author guoqiao
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
🧠

Ready to Install?

Get started with this skill in seconds

openclaw install url2pdf