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

Added dynamic retrieval of course prefix list for coursebook scraping #35

Merged
merged 11 commits into from
Oct 17, 2024

Conversation

mohammadmehrab
Copy link
Contributor

Created a helper method in utils/methods.go that scrapes the coursebook for course prefixes, and then used that method in scrapers/coursebook.go

mohammadmehrab and others added 11 commits April 22, 2024 23:57
Created an uploader for the toolkit which uploads parsed JSON content to the Mongo database. Both replace and merge options are implemented.
Changed connectDB() to use non-deprecated methods, and fixed many issues in uploader (currently still broken)
Created a generic function for uploading JSON files to Mongo, and added some comments for clarification. Currently the function requires that the file name is the same as the collection that the file contents are being uploaded to. Only courses, professors, and sections are supported.
Added ChromeDP scraping of UT Dallas coursebook course prefixes list in order to always have an updated version of the course prefixes list
Removed old coursePrefixes list, no longer needed
Copy link
Contributor

@jpahm jpahm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, thanks!

@jpahm jpahm merged commit 77c54da into UTDNebula:develop Oct 17, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants