Skip to content
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.

Using BS4 and requests to get the current year's date #6

Open
chriscn opened this issue Dec 10, 2021 · 1 comment
Open

Using BS4 and requests to get the current year's date #6

chriscn opened this issue Dec 10, 2021 · 1 comment

Comments

@chriscn
Copy link

chriscn commented Dec 10, 2021

Thinking that Term Dates will keep the same formatting and just using BS4 and requests to get the current date.

Advantages

  • No need to manually upload new code as the term dates change

Disadvantages

  • Moving over to semesters will need a code rewrite (another reason to dislike them)
  • Requires two quite big requirements (make them development requirements)
  • Requires active internet connection

Let me know what you think. I'd happily subscribe to an ICS of the Week numbers.

@LukeMoll
Copy link
Owner

LukeMoll commented Dec 13, 2021

Thanks for your interest!

As far as I'm concerned, having uoyweek run offline only is a big plus - I used it in terminal prompts and the like. Plus since term dates are only added once a year, and several years are known in advance, I don't think it's a disadvantage to ask people to update their version if they've run out of term dates; over the course of a 3-4 year degree, they might have to do this once.

BS4 could be very useful in the tools/ directory to help with parsing the term dates from the website and suggesting code changes.

Thank you for highlighting semesterisation, I'll add that as a separate issue.

I'd wondered about ICS myself (#3 ), but in the meantime, you may be interested in this ICS feed (GitHub).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants