| name | scribd-document |
| description | Download all pages from a Scribd document as images. Use when the user shares a scribd.com URL and wants to save, download, archive, or extract the pages/images of a Scribd document. |
Download Scribd Document
Download all page images from a Scribd document via its embed view.
Arguments
$ARGUMENTS should contain: <url> [output_dir]
Instructions
Run the Scribd extractor script with a 10-minute timeout (large documents can take several minutes to scroll and download):
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/scribd_extractor.py $ARGUMENTS
IMPORTANT: When running this via the Bash tool, set timeout: 600000 (10 minutes).
If httpx or playwright are not installed, install them first:
pip3 install httpx playwright
python3 -m playwright install chromium
The script handles everything:
- Converts the Scribd URL to its embed form (
/embeds/{id}/content)
- Launches a headless browser and navigates to the embed
- Reads the toolbar to detect total page count
- Scrolls through the document to trigger lazy loading of all pages
- Runs targeted scrolling passes for any pages that didn't load
- Downloads all page images as zero-padded
.jpg files
Verification
After the script finishes:
- Count the
.jpg files in the output directory
- Compare against the total page count reported by the script
- Report any gaps to the user
Notes
- The script is idempotent — re-running skips already-downloaded pages
- Filenames are zero-padded (
page_0001.jpg) for correct sort order
- Output directory defaults to
./scribd_output if not specified
- The script prints status to stderr and the output directory path to stdout
Example Usage
/download:scribd-document https://www.scribd.com/document/123456789/Sample-Document-Title
/download:scribd-document https://www.scribd.com/document/123456789/Sample-Document-Title ./my-book