Microservice to generate screenshot from a webpage and upload it to a AWS S3 Bucket.
Branch: master
Clone or download
Latest commit 944f601 Feb 6, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
aws.go Initial commit Feb 6, 2019
capture.go Initial commit Feb 6, 2019
config.yaml Initial commit Feb 6, 2019
main.go Initial commit Feb 6, 2019
readme.md Update readme Feb 6, 2019

readme.md

Chart-to-aws (screener)

Microservice to generate screenshot from a webpage and upload it to a AWS S3 Bucket.

Usage

Simple call with default values using curl: curl http://localhost:8000/\?path\=/mypage/id\&selector\=my_chartjs_id\&output\=screen/my_chartjs_id.png

Generate a screenshot from a javascript chart Can be include in email or Slack notification

Configuration

Service can be configured by the config.yaml file. Here's the default values:

httpserver:
    port: 8000
    query: 'path'
    selector: 'selector'
    output: 'ouput'
domain: 'https://pepperreport.io/'
aws:
  id: ''
  secret: ''
  token: ''
  bucket: ''
  region: 'eu-central-1'

Query terms can be updated using the config file. domain used to restrict scope of screenshot source path is corresponding to the domain path selector CSS id selector of the element output Destination of the file in the bucket

Contribute

To contribute just open a Pull Request with your new code. Feel free to contribute.