24 ms·
Is authentication required to make a schedule? You might want to look into using Playwright if you’re looking to programmatically parse these pages as a service
by cebert 2y ago
Is authentication required to make a schedule? You might want to look into using Playwright if you’re looking to programmatically parse these pages as a service.
Also, you should add the Ask HN prefix to this submission title.
- charlesrach 2y agoAuthentication is required to get the course info from the school website since each student has different courses but my website is a single use and doesn’t require any logins. I will look into playwright though what is it exactly?
- solardev 2y agoPlaywright is a headless browser automation framework. It lets you script browser actions in an offscreen window, simulating user activity in a real browser. It's not really the issue here though. If you want to capture real user auth and requests, you have to man in the middle them somehow. A Chrome extension is probably the easiest to do that, in terms of UX, because you can interact with the university website directly and intercept its requests. A third party website is subject to XSS protections so your user will have to jump through hoops.