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

Add course outline link to offering #48

Open
jonbiemond opened this issue Sep 17, 2023 · 2 comments
Open

Add course outline link to offering #48

jonbiemond opened this issue Sep 17, 2023 · 2 comments
Labels
backend Change to the backend database Change to how data is stored enhancement New feature or request frontend Change to the frontend good first issue Good for newcomers web scraping Requires web scraping

Comments

@jonbiemond
Copy link
Owner

Scrape the course outline URL for an offering and add it to the model and frontend.

@jonbiemond jonbiemond added web scraping Requires web scraping frontend Change to the frontend database Change to how data is stored backend Change to the backend labels Sep 17, 2023
@jonbiemond jonbiemond added the enhancement New feature or request label Sep 17, 2023
@0x53616D75656C
Copy link
Contributor

The course outline can be dynamically created for each offering like so.

def parse_offering_node(node: Node, course: Course, term: Term) -> Offering
    crn = node.css_first('li[class="sctn-block-list-item crn"] span').text(False)
    outline = f"https://www.bcit.ca/outlines/{date.today().year}{term}{crn}"

One temporary issue is, until BCIT adds the course outline, you will receive response status code 404 not found.

@jonbiemond
Copy link
Owner Author

@0x53616D75656C That's awesome! Are you interested in opening a PR?

@jonbiemond jonbiemond added the good first issue Good for newcomers label Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Change to the backend database Change to how data is stored enhancement New feature or request frontend Change to the frontend good first issue Good for newcomers web scraping Requires web scraping
Projects
Status: Idea
Development

No branches or pull requests

2 participants