Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cremindes/covid19vaccinationtracker
Twitter bot tracking COVID-19 vaccination numbers in Hungary.
https://github.com/cremindes/covid19vaccinationtracker
covid-19 covid-19-hungary covid-19-tracker go twitter twitter-bot vaccination vaccination-tracker vaccine vaccine-tracker
Last synced: 28 days ago
JSON representation
Twitter bot tracking COVID-19 vaccination numbers in Hungary.
- Host: GitHub
- URL: https://github.com/cremindes/covid19vaccinationtracker
- Owner: CreMindES
- Created: 2021-05-02T15:59:07.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-03T11:53:04.000Z (almost 4 years ago)
- Last Synced: 2024-11-15T06:29:31.358Z (3 months ago)
- Topics: covid-19, covid-19-hungary, covid-19-tracker, go, twitter, twitter-bot, vaccination, vaccination-tracker, vaccine, vaccine-tracker
- Language: Go
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# COVID-19 Vaccination Tracker
A Twitter bot tracking COVID-19 Vacciation numbers in Hungary.
> Nothing fancy, just a simple Twitter bot running as an Azure Function.
## Building
```bash
# just simply
go build -o hucovidtracker
```## Deployment
Deploy as an Azure Function.
1. Create an account
2. Create a resource group
```bash
deploy_region="westeurope"
deploy_group="go-custom-function"
az group create -l $deploy_region -n $deploy_group
```
3. Build
4. Create resources for Azure Function from deployment ARM (Azure Resource Management) template.
```bash
az deployment group create --resource-group $deploy_group --template-file azuredeploy.json
```
5. Set API keys and secrets @ portal.azure.com.
`$deploy_group > azure function > Settings|Configuration > New application settings x 4`
6. Deploy
```bash
func azure functionapp publish `[function name/ID]` --no-build --force
```## Under the Hood
Simple 3-step prepation and tweet
- Fetch last tweet (needs bootstrapping the account) and parse last reported number
- Fetch latest vaccincation number from country specific source
- Fetch population from wikimedia
- Tweet status update