Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.75 KB

README.md

File metadata and controls

27 lines (18 loc) · 1.75 KB

An API that recovers data from the Wigor schedule with Playwright

Wigor schedule: a private schedule used in my school, written in .NET, and quite broken, I written a little comment about that, see in schedule.spec .
(

/* why I (and people) hate the schedule of wigorservices: */
// - damn it's a long time to connect to `cas-p.wigorservices.net/cas/login` and then
// to load the desired page on `ws-edt-cd.wigorservices.net/WebPsDyn.aspx`;
// - depending on the domain, you will comme across other versions of site which are still hosted and online ¯\_(°-°)_/¯ ;
// - the ?hash= url can sometimes lead you to the "Erreur de paramètres" (error of parameters) page ;
// - if not, you have still ~5% chances of this even if the url is correct, re-send the request without changing
// anything and you have still ~5% chances ;
// - events are not children of days, so I refer to the left position of the style
// (which is the same to both types) with another matrix ;
// - it loads the header of the days of the week after and before the desired date, but not the events,
// I don't understand the purpose of this but I have to uncount the 5 days before and after in my locator ;
/* */
)

As Wigor schedule uses personal login I invite you to read ./private/exemple.users.json .

To use this API you need either:

  • Your personal school login ;
  • Or use my private hosted version where possibly people from other promotions/specialties generously entrust me with their login that you can use through keys (ex: 3sys for 3rd year sysops option).
    If you want more information about this contact me here [email protected].
    Or if you want to entrust me with your login, contact me here [email protected].
Hosted version try out and more info on Postman

https://www.postman.com/theodancoisne/workspace/theo-s-lab-apis-public

About Plywright

Playwright is used to do automation on browsers and apps (headless or not) to check that everything works as expected.
Here i use it to to grab the text in the html DOM.

Playwright website
Little Playwright doc by Microsoft

Playwright VS Puppeteer