Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrating class time look up to use webreg api #9

Open
WojtekTB opened this issue Aug 20, 2022 · 0 comments
Open

Migrating class time look up to use webreg api #9

WojtekTB opened this issue Aug 20, 2022 · 0 comments

Comments

@WojtekTB
Copy link
Owner

Currently we get hovered class' info by looking at the table row element and reading its innerHTML which is not great because it is not consistent and it makes it tough to figure out which rows belong together since in HTML they all look pretty much identical. A solution to this would be to only get the basic section info and somehow correlate it with the info we get from the WebReg API.

I was not able to find any documentation for it since it is probably not meant to be used by anything other than the website itself, but I think we should be just able to make fetch requests similar to what the website is sending whenever you search for particular classes:
image
image

The response payload contains begin and end times, and other info we might want to display.

Still need to think about how the correlation between a particular section and the api response payload should go. Ideas welcomed.

@WojtekTB WojtekTB changed the title Migrating class time look up to webreg api Migrating class time look up to use webreg api Aug 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant