Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/as-a-service/screenshot
Screenshot as a service: take screenshot of the given URL
https://github.com/as-a-service/screenshot
cloud-run-button container docker headless-chrome microservice nodejs
Last synced: 17 days ago
JSON representation
Screenshot as a service: take screenshot of the given URL
- Host: GitHub
- URL: https://github.com/as-a-service/screenshot
- Owner: as-a-service
- License: apache-2.0
- Created: 2018-11-22T02:50:55.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T16:35:02.000Z (almost 2 years ago)
- Last Synced: 2024-05-22T06:08:41.575Z (6 months ago)
- Topics: cloud-run-button, container, docker, headless-chrome, microservice, nodejs
- Language: JavaScript
- Homepage: https://screenshot.as-a-service.dev/
- Size: 47.9 KB
- Stars: 103
- Watchers: 2
- Forks: 25
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cloud-run - screenshot
README
# Takes a screenshot of the given page
A simple web service that takes screenshot of the given URL.
Run with `docker run -p 8080:8080 gcr.io/as-a-service-dev/screenshot`
[![Run on Google Cloud](https://storage.googleapis.com/cloudrun/button.svg)](https://deploy.cloud.run)
## API
### URL parameters:
* `url`: The URL of the website to screenshot
* (`width`): The viewport width (in pixels), defaults to 1280
* (`height`): The viewport height (in pixels), defaults to 800Example: `/?url=https://steren.fr`
## Running the server locally
* Build with `docker build . -t screenshot`
* Start with `docker run -p 8080:8080 screenshot`
* Open in your browser at `http://localhost:8080/?url=https://steren.fr`![CloudBuild](https://badger-l7zawt5jsq-uw.a.run.app/build/status?project=as-a-service-dev&id=55d8abca-3a3c-428e-a608-2c4caa10df58)