edoctor-talon-checker
v1.0.0
Published
Tool for check talon on Belarus online registry (eDoctor system)
Downloads
3
Readme
eDoctor talon checker
Tool for check talon (a doctor's appointment card) availability,on Belarus online registry eDoctor hospital info system
Install
npm i edoctor-talon-checker
Usage
import { checkTalon } from 'edoctor-talon-checker'
setInterval(async () => {
const { count } = await checkTalon({
// url
url: 'http://178.124.171.86:8081/4DACTION/TalonyWeb_TalonyList',
// form data
form_data: { Check25: 'on' },
})
console.log(`talons available: ${count}`)
}, 1000 * 5000)
Example apps:
- simple native server with notifications and cron
- electron (🏗 WIP)
- fullstack app (🏗 WIP)
How to get url and FormData
for example:
- lor.by
- original page with frame - http://lor.by/onlajn-zakaz-talona
- frame - http://178.124.171.86:8081/4DACTION/TalonyWeb_TalonyList
- Go to site and open
dev tools
inNetwork
tab, select doctor on site and send data, see headers
TODO
- [ ] method to auto get and parse params
License
MIT reslear