Skip to content
Use puppeteer in your Azure functions.
Branch: master
Clone or download
Latest commit 06fd5f0 Aug 12, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
Examples add screenshot example and README Aug 11, 2019
.gitignore initialize project Aug 11, 2019
Dockerfile initialize project Aug 11, 2019
LICENSE Create LICENSE Aug 11, 2019
PuppeteerAzureFunc.csproj initialize project Aug 11, 2019 update README Aug 12, 2019
host.json initialize project Aug 11, 2019
local.settings.json initialize project Aug 11, 2019

Puppeteer Azure Functions on Docker

A base Docker image of an Azure Function App with Puppeteer installed.
Create Puppeteer scripts which can be deployed as web services on Azure.

Run the Examples

docker pull deniskyashif/puppeteer-azure-func
docker run -p 8080:80 -it deniskyashif/puppeteer-azure-func

Retrieve the title of a page

curl -v http://localhost:8080/api/Examples/Title?url=

Take a screenshot of a page

curl -v http://localhost:8080/api/Examples/Screenshot?url= -o ./page.png

Download page as a PDF

curl -v http://localhost:8080/api/Examples/Pdf?url= -o ./page.pdf

Local Development


Run the project

func start

Add your own functions

func new --name MyFunction --template "HttpTrigger"

PuppeteerSharp API reference.

For building custom images and deploying them on Azure, refer to this article.

You can’t perform that action at this time.