Track how retail prices have changed since the 2024 U.S. presidential election.
A lightweight, data-driven project that scrapes and analyzes product prices over time to explore the economic aftermath of U.S. democratic transitions. Built using Python, SerpAPI, and pandas.
- 🔎 Search Google Shopping for product prices
- 🕒 Store historical price data in CSV for analysis
- 📈 Run price comparisons
- 📊 Visualize product-level price changes over time
- 🔔 (Optional) Get alerts when prices shift dramatically
- Python 3.9+
- SerpAPI – for structured Google Shopping results
pandas– for data manipulationmatplotlib– (optional) for visualizationsschedule– (optional) for automating daily price logs
git clone https://github.com/your-username/the-cost-of-democracy.git
cd the-cost-of-democracypip install -r requirements.txtCreate a free SerpAPI account at serpapi.com and get your API key.
SERPAPI_KEY="your_api_key_here"-
Create a new feature branch:
git checkout -b feature/your-feature-name
-
Set the branch to track your remote:
git push --set-upstream origin feature/your-feature-name
-
Before making new changes, sync with
mainusing rebase. Ensure your working directory is clean:git status # Check for uncommitted changes git pull --rebase origin main -
If there are changes (in red), stage them before continuing:
git add . git commit -m "syncing with main"
-
Make your changes, then commit and push:
git add . git commit -m "your descriptive commit message" git push
-
Open a Pull Request (PR) on GitHub to merge your feature branch into
main.
Once the PR is opened, we’ll schedule a quick walkthrough to review your changes.
- Use meaningful branch names like
feature/price-alertsorfix/yoy-analysis. - Write clear and consistent commit messages.
- Keep PRs small and focused.
- Avoid making more commits after submitting a PR unless part of review feedback.
Made with democracy in mind.

