bdd5718630
* doc(examples): added pupperender * review fixes * review fixes 2
1.3 KiB
1.3 KiB
Running the examples
Assuming you have a checkout of the Puppeteer repo and have run yarn (or npm i) to install the dependencies, the examples can be run from the root folder like so:
NODE_PATH=../ node examples/search.js
Other resources
Other useful tools, articles, and projects that use Puppeteer.
Rendering and web scraping
- Puppetron - Demo site that shows how to use Puppeteer and Headless Chrome to render pages. Inspired by GoogleChrome/rendertron.
- Thal - Getting started with Puppeteer and Chrome Headless for Web Scraping.
- pupperender - Express middleware that checks the User-Agent header of incoming requests, and if it matches one of a configurable set of bots, render the page using Puppeteer. Useful for PWA rendering.
Testing
- angular-puppeteer-demo - Demo repository explaining how to use Puppeteer in Karma.
- mocha-headless-chrome - Tool which runs client-side mocha tests in the command line through headless Chrome.