Skip to content

A screenshot creation tool using the ChromeDevTools protocol

Notifications You must be signed in to change notification settings

SergeyKrasnolobov/screenshot-golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Default curl request

curl -d '{"source":"<button>Hello</button>", "viewport": {"width": null, "height": null}}' -H "Content-Type: application/json" -X POST http://localhost:3001/chrome/screenshot/ >> example.png

curl -d '{"source":"<button>Hello</button>", "viewport": {"width": 100, "height": 100}}' -H "Content-Type: application/json" -X POST http://localhost:3001/chrome/screenshot/ >> example.png

Curl request with file

  • Install NodeJS >= 16
  • cd template
  • npm run genarate
curl -d '@template/request.json' -H "Content-Type: application/json" -X POST http://localhost:3001/chrome/screenshot/ >> example.png

About

A screenshot creation tool using the ChromeDevTools protocol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published