Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/preetam/screenshot
A Docker container with a REST API that takes screenshots of web pages
https://github.com/preetam/screenshot
Last synced: 19 days ago
JSON representation
A Docker container with a REST API that takes screenshots of web pages
- Host: GitHub
- URL: https://github.com/preetam/screenshot
- Owner: Preetam
- License: apache-2.0
- Created: 2022-01-07T21:08:36.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-08T19:29:53.000Z (about 3 years ago)
- Last Synced: 2024-11-10T00:38:34.197Z (3 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# screenshot
A Docker container with a REST API that takes screenshots of web pages## Usage
### Pull Docker image
```sh
docker pull ghcr.io/preetam/screenshot:main
```### Run Docker container
```sh
docker run -p 8000:8000 ghcr.io/preetam/screenshot:main
```### Request a screenshot
http://localhost:8000/?url=https://google.com/
![image](https://user-images.githubusercontent.com/379404/148623283-61d7eb03-87e5-442d-a29b-914cdd38bd53.png)
Optionally set window size: http://localhost:8000/?url=https://google.com/&window_size=800,600
![image](https://user-images.githubusercontent.com/379404/148623306-149bf87c-1a12-41f7-93a9-21dabcc1ac4d.png)
## License
Apache 2.0 (see LICENSE)