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

Import lectures and grades from university website #30

Closed
Tracked by #38
ExalFabu opened this issue Jun 28, 2021 · 2 comments
Closed
Tracked by #38

Import lectures and grades from university website #30

ExalFabu opened this issue Jun 28, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request
Projects
Milestone

Comments

@ExalFabu
Copy link
Owner

Add a way to import everything needed from Unipa.
I've thought of a couple of ways

  1. Ugly version: Go to the Unipa website and copy all the text containing lectures info. (with some kind of tutorial explaining how to do it)
  2. Very much better version: Log in into Unipa SSO and requesting the data automatically.

2 has still to be figured out, since I don't really know much about CAS Authentication.
Found this that might be useful but doesn't seem a very safe approach. Maybe there is no alternative. Maybe i need to ask S.I.A. (Unipa's IT Office)

@ExalFabu ExalFabu added the enhancement New feature or request label Jun 28, 2021
@ExalFabu ExalFabu added this to the v2 milestone Jun 28, 2021
@ExalFabu ExalFabu added this to To do in V2 via automation Jun 28, 2021
@ExalFabu
Copy link
Owner Author

ExalFabu commented Jul 9, 2022

Update

Since the whole authentication thing is kind of overkill, the most efficient way is to just be able to extract the data from a single webpage that contains all the information. Basically scraping a link that the user can input.

Pros

  • Ease of use
  • Gets new users ready to play with the websites

Cons

  • Might be hard to scrape the page in less than 10 seconds (Vercel's time constraint for serverless functions on the free plan)
  • Ties the website with the University of Palermo website (in the future it might be possible to differentiate the scraping based on the university's URL, allowing PRs to implement these)

UNIPA"s example: Searching page - Sample page to scrape

@ExalFabu ExalFabu self-assigned this Jul 16, 2022
This was referenced Jul 16, 2022
@ExalFabu
Copy link
Owner Author

closed by #42

V2 automation moved this from To do to Done Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
V2
Done
Development

No branches or pull requests

1 participant