π‘ Smart Expense Tracker using Google Forms + Sheets + Colab
β¨ Inspiration
Managing expenses is something most of us struggle with β especially students and families trying to track small but frequent transactions. Traditional apps can be complex or paid. So I thought, "Why not build something simple using tools we already use daily β Google Forms, Sheets, and Python?"
Thatβs how the idea of this Smart Expense Tracker was born β a project that automates expense recording and gives instant insights using familiar tools.
π§ How I Built It
β Tools Used:
- Google Forms β for users to submit their daily expenses easily
- Google Sheets β acts as a database storing all form responses
- Google Colab (Python + Pandas) β processes the sheet data and generates analytics like category totals and pie charts
- HTML + CSS + JavaScript β to create a simple user-friendly web interface that fetches and displays the data live
π Workflow:
- Designed a Google Form with fields like Date, Category, Amount, Notes.
- Responses were linked directly to a Google Sheet.
- In Colab, I used
pandasto read the sheet as a CSV usingread_csv(). - Performed data cleaning, grouping, and analysis using basic pandas functions.
- Added visual insights like pie charts using
matplotlib/plotly. - Created a basic web interface that displays form, shows submitted data from Sheets, and connects to Colab backend if needed.
π What I Learned
- How to integrate Google Forms and Sheets with Python
- Working with CSV data via URLs
- Basic data analysis using pandas
- Displaying live Google Sheets data in a web page using JS
- Creating a clean, responsive UI using HTML, CSS, and Bootstrap
π§ Challenges Faced
- π Initial struggle with Sheet access permissions (401 errors when not shared as βAnyone can viewβ)
- π§ Figuring out the right way to export Google Sheets as CSV
- π Issues with Colab authentication using gspread and service keys (later avoided by using public CSV instead)
- π Handling Colab network failures temporarily while fetching sheets
π Final Outcome
- A clean, easy-to-use, zero-cost Smart Expense Tracker
- Accessible to anyone with just a Google Form and internet
- Perfect for students, households, or small teams to manage budgets
π What's Next?
- Add automatic AI-based categorization of expenses using OpenAI
- Generate PDF reports or monthly summaries
- Build a Flask backend for more advanced control
βBig impact starts with small ideas β this project is proof of that.β
Built With
- colab
- forms
- python
Log in or sign up for Devpost to join the conversation.