Overview
Oregon State University(OSU) Hackathon club put togeather "Beaver Hacks Fall 2022." The event was set up to help students learn new skills, build cool stuff, and compete for prizes. Our team concisted of two new students to the OSU Computer Science post bacc program and competed in the new student catagory. The prompt of the Hackathon was "Life Hacks" and the goal was to build a program that fits this prompt in three days.
The Challenge
Based on the prompt our team wanted to pursue a project geared towards automating "Night Life". Accordingly, we came up with Python Events as a way to find out about what concerts were happening on a daily basis. Once called, the Python Events script makes a request to the SeatGeek API, formats the concert data to HTML and then sends a nicely formatted email to our inboxes.
How we built it
Using the following libraries:
- requests library to access the seatgeek api
- smtplib library to send emails using the smtp protacol
- os and dotenv librarys to store api credentials in an .env file
- datetime and time librarys
- jinja2
Lessons Learned
- How to make simple API requests
- Sending email from a python program
- Basic HTML formatting
- Using Git and Github in a team enviornment
Continued development
In the future we would like to return and implement the following
- Using Time benchmarks to indicate script speed following program edits
- CSS styling
- API requests for other event types like comedy, sports, etc.
- Deployment to PythonAnywhere & automating script call once API url has been whitelisted.
- Web application for signing up for an email based on user's event preferences. Python script will make a request to user address & preferences endpoint and send emails.
Useful resources
- Managing PyCharm projects under Version Control Systems
- Forking vs Branching
- Environment Variables in Python
- Building dynamic HTML content
- Converting date-time strings
- Sending smtplib email - pt.1
- Sending smtplib email - pt.2
- Documentation on Python Email class
- Python Anywhere
Authors
- GitHub - @Gomurmamma
- GitHub - @merritcl

Log in or sign up for Devpost to join the conversation.