Skip to content

kamko/korona-gov-sk-api

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
kgs
 
 
 
 
 
 
 
 
 
 
 
 
 
 

korona-gov-sk-api

Actions Status image metadata

transforms data from https://www.korona.gov.sk/ into simple json. (and saves history)

optionally sends notifications to telegram (via bot), slack (via webhook), or discord (via webhook)

  • / or /stats
    {
        "id": 26,
        "tested": 6411,
        "negative": 6119,
        "positive": 292,
        "recovered": 2,
        "dead": 0, 
        "sync_time": "2020-03-28T21:54:26.220233"
    }
  • /stats/all
     [
      {
        "id": 26,
        "tested": 6411,
        "negative": 6119,
        "positive": 292,
        "recovered": 2,
        "dead": 0, 
        "sync_time": "2020-03-28T21:54:26.220233"
      }
    ]

live version

https://korona.kamko.dev

configuration via environment vars

SQLALCHEMY_DATABASE_URI=<path-to-sqllite-db>
CHECK_FREQUENCY=<frequency-of-korona.gov.sk-scrapes-seconds>
TELEGRAM_TARGETS = "<token>~<chat-id>;<token>~<chat-id>" # multiple separated by ;
SLACK_TARGETS = "<webhookid>;<webhookid>" # multiple separated by ;
DISCORD_TARGETS = "<webhookid>;<webhookid>" # multiple separated by ;
  • note: https://hooks.slack.com/services/<webhookid>
  • note: https://discordapp.com/api/webhooks/<webhookid>

requirements

python 3.7+

disclaimer

deploy and use only at your own responsibility

license

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published