Skip to content

jigar1101/puppeteer-demos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Puppeteer Demos

Demos for using puppeteer library

  • To take a screenshot - Example of Google Search engine
  • To export a pdf of a particular web page(in case of this demo, homepage of this repository).

Starting the node server

Assuming that node is installed on your local setup, fire the command node index.js in the root directory of this repository. This will start the node server at 5000 port.

Routing to '/screenshot' route will save a screenshot of the google search engine in your local repository. Routing to '/export-pdf' will export a pdf of the homepage(of this repository) at the root of your repository.

Releases

No releases published

Packages

No packages published