Skip to content

Playwright REST API service for URL screenshot and traffic capture

License

Notifications You must be signed in to change notification settings

PiRogueToolSuite/playwright-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Playwright REST API

Playwright REST API Docker service for URL screenshot and traffic capture.

License: GPLv3

Website | Documentation | Support

Example of usage

First, start the Playwright container:

docker run --rm --name playwright -p 8989:80 ghcr.io/piroguetoolsuite/playwright-rest-api:main

Then, capture the given URL, here https://pts-project.org:

curl -X POST --location "http://localhost:8989/capture" \
    -H "Content-Type: application/json" \
    -d "{\"url\": \"https://pts-project.org\"}" --output out.zip

The returned ZIP archive contains:

  • screenshot.png
  • capture.har

About

Playwright REST API service for URL screenshot and traffic capture

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages