a uManitoba subreddit version of my previous course finder bot
See the bot in action here
this bot monitors the uManitoba subreddit and replies to users with their requested course description and prerequisites from the uManitoba database.
Please note the database is not readily available in one place and webpage so I used this arbitrary link and manipulated the URL content by replacing the last part of the link with a specific course name and code, which yields a new webpage with the respective course information
Note: As of May 2021, uManitoba has updated their databases and their website, so the above link is invalid. Perhaps in the near future I will update the code to fix this change.
either through commenting or posting in the subreddit, simply call the bot like this
!find *course_name* *course_code*
make sure to leave a space between !find, course_name and course_code
- register an app with Reddit for authenticatication. Instructions here
- input your client information, username and password in login_bot()
- if desired, change or remove how often the bot checks for new posts and comments in main()
- run main() or the py file in the interpreter to start the bot!
- Python 3.8.3
- PRAW 7.0.1 - for working with Reddit API
- BeautifulSoup 4.9.0 - for course database parsing