Skip to content

Giorgospago/puppeteer-screenshot-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screenshot & Video Recording API

Based on NodeJs and Puppeteer

GitHub

https://github.com/Giorgospago/puppeteer-screenshot-api

Install

Simple docker command

docker run -d -p 3030:3030 giorgospago/puppeteer-tools

With docker-compose.yml file

version: "3.7"

services:
  puppeteer-tools:
    image: giorgospago/puppeteer-tools
    ports:
      - 3030:3030
    volumes:
      - type: bind
        source: ./your-data-directory
        target: /var/www/public

Usage of API

Screenshot

https://your-endpoint.com/image?url=https://google.com

alt text

Video Recording

https://your-endpoint.com/image?url=https://google.com Result:

{
    "success": true,
    "url": "https://your-endpoint.com/videos/google.com-1920x1080-00000-000-000-000-0000000.mp4"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published