Automation of space taking on Semana with github Actions schedule. All Monday at 00:30am, the script run to get your place on all days in 6 weeks.
To get your information, open dev console and get the information in POST request to get your place.
-
Fork this repo.
-
Go to your
settings > Security > Secrets and variables > Actionsand add this :COMPANY-> if you want set your place for 'cospirit' company, set value atcospirit. (You can find it in Url of your semana's company)COLLABORATOR_ID->your_collaborator_idCOOKIE->your_cookie(3 cookies is set by semana, takesidcookie value.DESK_ID->your_desk_idDESK_ID_[0-4]-> Change your desk on specific days of weeks (0 = monday; ... ; 4 = friday). IfDESK_ID_[0-4]exist, is use in script, else use defaultDESK_IDSTATUS-> Set by default6a0dffcb-5ab3-4108-9fde-4a834eeb8d9e(On local company)STATUS_[0-4]-> Same asDESK_ID_[0-4], you can specify a day to remote with this value :28b83f47-0221-4dac-b3c0-f6a8690e64b3
To get collaborator_id, desk_id. Open your navigator debugger (F12, or right clic, inspect element).
Take your place one time and you can see in network tab, search booking. On tab Payload

To get your cookie, follow this screen and copy the red rectangle

