Skip to content
This repository has been archived by the owner on Sep 14, 2024. It is now read-only.

📷 Stateless Website Screenshot API containerized in Docker

License

Notifications You must be signed in to change notification settings

hatredholder/Screenshot-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screenshot-API

Screenshot-API is a small Docker image with chromedp installed and Golang-based Webserver to interact with it. It can be used to take screenshots of provided websites.

🔧 Installation

Before running anything, you need to make sure you have Docker installed.

  1. Build a Docker container with:
make build
  1. Run the Docker container with:
make run

⚙️ Usage

Screenshot-API will start on port 8080. To send a request to screenshot a website, for example, google.com, go to:

http://localhost:8080/screenshot/?url=https://google.com

This will return a JSON response with a link to the screenshot image, in this format:

{"screenshotUrl":"localhost:8080/storage/LfUqsp.png"}

🌠 Contributing

Contributions are welcome! Having an issue? An idea to improve existing functionality? Critique?

Please leave pull requests/issues with your suggestions!