All Projects → cheeaun → Puppetron

cheeaun / Puppetron

Puppeteer (Headless Chrome Node API)-based rendering solution.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Puppetron

Phpchrometopdf
A slim PHP wrapper around google-chrome to convert url to pdf or to take screenshots , easy to use and clean OOP interface
Stars: ✭ 127 (-70.4%)
Mutual labels:  pdf, screenshot, chrome, chromium, headless
Html Pdf Chrome
HTML to PDF converter via Chrome/Chromium
Stars: ✭ 629 (+46.62%)
Mutual labels:  pdf, chrome, chromium, headless
Lancia
网页转PDF渲染服务。提供收据、发票、报告或任何网页内容转PDF的微服务
Stars: ✭ 108 (-74.83%)
Mutual labels:  pdf, screenshot, chrome, puppeteer
Url To Pdf Api
Web page PDF/PNG rendering done right. Self-hosted service for rendering receipts, invoices, or any content.
Stars: ✭ 6,544 (+1425.41%)
Mutual labels:  pdf, chrome, puppeteer, headless
Puppeteer Walker
a puppeteer walker 🕷 🕸
Stars: ✭ 78 (-81.82%)
Mutual labels:  chrome, puppeteer, headless
Puppeteer Docs Zh Cn
Google Puppeteer 文档的中文版本 , 目标版本 1.9.0, 翻译中...
Stars: ✭ 61 (-85.78%)
Mutual labels:  chrome, puppeteer, chromium
Singlefile
Web Extension for Firefox/Chrome/MS Edge and CLI tool to save a faithful copy of an entire web page in a single HTML file
Stars: ✭ 4,417 (+929.6%)
Mutual labels:  screenshot, chrome, puppeteer
Flaresolverr
Proxy server to bypass Cloudflare protection
Stars: ✭ 241 (-43.82%)
Mutual labels:  chrome, puppeteer, chromium
Serverless Puppeteer Layers
Serverless Framework + AWS Lambda Layers + Puppeteer = ❤️
Stars: ✭ 247 (-42.42%)
Mutual labels:  chrome, puppeteer, headless
Gowitness
🔍 gowitness - a golang, web screenshot utility using Chrome Headless
Stars: ✭ 996 (+132.17%)
Mutual labels:  screenshot, chrome, headless
Puppeteer Dart
A Dart library to automate the Chrome browser over the DevTools Protocol. This is a port of the Puppeteer API
Stars: ✭ 92 (-78.55%)
Mutual labels:  pdf, screenshot, puppeteer
Ferrum
Headless Chrome Ruby API
Stars: ✭ 1,009 (+135.2%)
Mutual labels:  chrome, chromium, headless
Cuprite
Headless Chrome/Chromium driver for Capybara
Stars: ✭ 743 (+73.19%)
Mutual labels:  chrome, chromium, headless
Puppeteer Sharp
Headless Chrome .NET API
Stars: ✭ 2,122 (+394.64%)
Mutual labels:  chrome, puppeteer, chromium
Puppeteer Api Zh cn
📖 Puppeteer中文文档(官方指定的中文文档)
Stars: ✭ 697 (+62.47%)
Mutual labels:  chrome, puppeteer, headless
Headless Chrome Crawler
Distributed crawler powered by Headless Chrome
Stars: ✭ 5,129 (+1095.57%)
Mutual labels:  chrome, puppeteer, chromium
Google Meet Scheduler
😴 Attends classes for you.
Stars: ✭ 150 (-65.03%)
Mutual labels:  puppeteer, chromium, headless
Sms Boom
利用chrome的headless模式,模拟用户注册进行短信轰炸机
Stars: ✭ 507 (+18.18%)
Mutual labels:  chrome, puppeteer, headless
Pdf Bot
🤖 A Node queue API for generating PDFs using headless Chrome. Comes with a CLI, S3 storage and webhooks for notifying subscribers about generated PDFs
Stars: ✭ 2,551 (+494.64%)
Mutual labels:  pdf, chromium, headless
Gotenberg
A Docker-powered stateless API for PDF files.
Stars: ✭ 3,272 (+662.7%)
Mutual labels:  pdf, puppeteer, chromium

Puppetron

Puppeteer (Headless Chrome Node API)-based rendering solution.

Videos & Tweets:

⚠️⚠️⚠️ NOTE: Starting version 2.0, CJK and emoji support is gone.

🚧🚧🚧 PLEASE READ THIS 🚧🚧🚧

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.

API

The API can perform 3 actions:

  • Screenshot - take a screenshot of the web page
  • Render - render and serialize a HTML copy of the web page
  • PDF - generate a PDF of the web page

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

/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

/render/{URL}

Notes:

  • script tags except JSON-LD will be removed
  • link[rel=import] tags will be removed
  • HTML comments will be removed
  • base tag will be added for loading relative resources
  • Elements with absolute paths like src="/xxx" or href="/xxx" will be prepended with the origin URL.

Parameters: None

PDF

/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)

Development

Requirements

Steps

  1. npm i
  2. npm start
  3. Load localhost:3000

Credits

Block list from Prerender.

For version 1.0, this uses cheeaun/puppeteer Docker image.

For version 2.0, this uses some parts from Zeit's now-examples: misc-screenshot.

Inspired by zenato/puppeteer, puppeteer-renderer and Rendertron.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].