Skip to content
Use puppeteer in your Azure functions.
Dockerfile
Branch: master
Clone or download
Latest commit 06fd5f0 Aug 12, 2019
Permalink
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
README.md update README Aug 12, 2019
host.json initialize project Aug 11, 2019
local.settings.json initialize project Aug 11, 2019

README.md

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=https://github.com

Take a screenshot of a page

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

Download page as a PDF

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

Local Development

Prerequisites

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.