Skip to content

Command to fetch available doctor appointments from Doctolib

License

Notifications You must be signed in to change notification settings

thislg/goctolib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goctolib

This CLI tool fetches available appointments from www.doctolib.fr using its rest API. It is available as a portable binary with no dependency thanks to Go compilation.

Usage

  -city string
        Required city slug to search in. Example: paris
  -motive string
        Optional motive id to search in. Use verbose -v to get a list of motives. Example: 2167
  -notify
        Use notify-send to notify if there are results.
  -speciality string
        Required specialty slug to search in. Example: medecin-generaliste
  -v    Verbose. Output more information.

Example

$ goctolib -speciality medecin-generaliste -city paris

Output:

Next slot: Dr John Doe 2022-08-16 09:15:00 +0200 CEST https://www.doctolib.fr/medecin-generaliste/paris/john-doe
Next slot: Dr Jane Doe 2022-09-05 10:40:00 +0200 CEST https://www.doctolib.fr/medecin-generaliste/paris/jane-doe

You can use -notify flag to get a notification (notify-send is needed). Combine it with a redirection of standard output to a file to get the list of appointments anytime.

Build

$ go build

This program is written is Go. See the official documentation to install it.

About

Command to fetch available doctor appointments from Doctolib

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages