Puppeteer (Headless Chrome Node API)-based rendering solution.
286
Puppeteerā (Headless Chrome Node API)-based rendering solution.
Videos & Tweets:
clipSelector demo https://www.youtube.com/watch?v=wYCrJu-Wy2Eā Do NOT use this for production use-cases.
This is just a demo site of what cool things that Puppeteer can do. Under any circumstances, this site may be down any time or be heavily rate-limited to prevent abuse.
Please check out what Puppeteerā can do for your own use case and host on your own servers.
The API can perform 3 actions:
URL - the URL with encoded pathname, search and hash.
Global parameters:
width - width of viewport/screenshot (default: 1024)height - height of viewport/screenshot (default: 768)/screenshot/{URL}
...or
/{URL}
Parameters:
thumbWidth - width of thumbnail, respecting aspect ratio (no default, has to be smaller than width)fullPage - takes a screenshot of the full scrollable page (default: false). If the page is too long, it may time out.clipSelector - CSS selector of element to be clipped (no default). E.g.: .weather-forecast./render/{URL}
Notes:
script tags except JSON-LD will be removedlink[rel=import] tags will be removedbase tag will be added for loading relative resourcessrc="/xxx" or href="/xxx" will be prepended with the origin URL.Parameters: None
/pdf/{URL}
Parameters:
format: Paper format that Puppeteer supportsā . E.g.: Letter, Legal, A4, etc. (default: Letter)pageRanges: Paper ranges to print. E.g., 1-5, 8, 11-13 (default all pages)For local Chromium install:
npm installnpm startlocalhost:3000For Docker-based install:
docker build . -t puppetdocker run -p 8080:3000 puppetlocalhost:8080Block list from Prerenderā .
This uses cheeaun/puppeteerā Docker image. Inspired by zenato/puppeteerā , puppeteer-rendererā and Rendertronā .
Content type
Image
Digest
Size
391.2 MB
Last updated
about 8 years ago
docker pull rodme13/puppetron