Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/k1m0ch1/vaksin-jakarta
https://github.com/k1m0ch1/vaksin-jakarta
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/k1m0ch1/vaksin-jakarta
- Owner: k1m0ch1
- Created: 2021-07-04T17:50:22.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-07-29T18:13:14.000Z (over 3 years ago)
- Last Synced: 2024-10-03T12:39:39.922Z (3 months ago)
- Language: Python
- Size: 807 KB
- Stars: 33
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vaksin api jakarta
because API service vaksinasi-corona.jakarta.go.id is sometime laggy, I made mirror API that simplify the data in need to see the availability of the vaksin around jakarta
I deploy this at https://vaksin-jakarta.yggdrasil.id/ and for the frontend https://jakarta-vax-availability.vercel.app/
data is included the vaccine location include with the schedule same with this https://twitter.com/mathdroid/status/1411712464916414467
the data is actually change every 6 hour
# requirements
- pip
- pipenv
- pm2# install
1. `pipenv instyall --deploy --system`# to run scrape for every 5 minutes
`pm2 start ./scrape.py --interpreter python3 --cron "*/5 * * * *" --name scrape-vaksin-jakarta --watch`# to run the web server
`pm2 start ./main.py --interpreter python3 --name vaksin-api`## Data Format
```
{
"kode_lokasi_vaksinasi": 1052,
"nama_lokasi_vaksinasi": "POS KESEHATAN RUSUNAWA MARUNDA",
"alamat_lokasi_vaksinasi": "Jl. Marunda Cluster B Blok 8 Lt Dasar RT 16/07",
"wilayah": "KOTA ADM. JAKARTA UTARA",
"kecamatan": "CILINCING",
"kelurahan": "MARUNDA",
"rt": "16",
"rw": "7",
"kodepos": "",
"jenis_faskes": "Puskesmas",
"email": "",
"no_wa_pic": "",
"jumlah_tim_vaksinator": 1,
"nama_faskes": "POS KESEHATAN RUSUNAWA MARUNDA",
"created_at": null,
"updated_at": null,
"pcare": false,
"jadwal": [
{
"id": "2021-07-06",
"label": "Selasa, 06 Juli 2021",
"kode_lokasi_vaksinasi": 1052,
"waktu": [
{
"kuota": {}
}
]
}
]
"detail_lokasi":[],
"last_updated_at": "iso8601"
}
```## Changelog
- 0.1.0 add the time
- 0.2.0 add the `detail location`
- 0.3.0 add the `last_updated_at`
- 0.4.0 add the `kuota` ke inside the waktu, integrated with https://jkt-vax-quota.vercel.app/
- 0.5.0 full integrate with https://jkt-vax-quota.vercel.app/api/kuota all the data from jaki and https://jkt-vax-quota.vercel.app/api/kuota now merged
- 0.6.0 add `daily_archive` to store a data vax everyday
- 0.7.0 because the data will change every 6 hour, so the `archive` change with format `date-number.json` for example `2021-02-03-1.json` the `number` variable is 24 hour format divided by 6, round up and add one `int(datetime.now().hour/6)+1` it will be range from 1-4
- 0.7.1 fixing the data location by adding the key `wilayah` so the location name will be concated with city name, so the nominatim will not give a confusing result, but the data is much clean now, maybe there will be a decrease data over time## Todo
- POST data to register
- how to check if the data is `ACTUALLY` registered
- stream file instead of full buffer