🚨 Critical Disclaimer 🚨
This project is a quick experiment in web scraping and data analysis - not a rigorous statistical study. Important Notes:
- 🎲 Gambling Warning: Lottery tickets are designed to lose money. Never consider this an investment strategy
- 🛠️ Code Quality: Built rapidly for learning purposes, not representative of production-grade code
- 📉 Methodology Notes:
- Prize odds calculations make simplifying assumptions
- No error margins calculated for estimates
- Web scraping approach may break with website changes
- 📜 No Guarantees: Analysis may contain inaccuracies - verify with official sources
Treat this as a curiosity, not financial advice or technical best practices.
Automated pipeline that:
- 🕷️ Scrapes Arizona Lottery scratcher data daily
- 📊 Analyzes prize pool statistics
- 📈 Generates interactive visualizations
- 🚀 Auto-deploys results to GitHub Pages
- Automated Daily Updates via GitHub Actions
- Prize pool tracking with historical trends
- Expected value calculations
- Self-updating website
- Data validation checks
- Python 3.10+
- Chrome Browser
- Chromedriver
- SQLite
git clone https://github.com/ImmaZoni/Scratcha.git
cd scratcha
# Install dependencies
python -m pip install -r requirements.txt
# Initialize database
python db_handler.pyFull pipeline:
python scraper.py && python analysis_engine.pyScraper Options:
# Limit to 5 pages
python scraper.py --max-page 5
# Run in headless mode
python scraper.py --headless- Scraper (
scraper.py) collects raw game data - DB Handler stores structured records
- Analysis Engine calculates metrics
- GitHub Actions deploys results hourly
- Live odds tracking
- Historical prize pool graphs
- Game comparison tools
- Auto-updating sitemap
This project is open for educational purposes:
- Fork repository
- Create feature branch
git checkout -b feature/your-idea - Submit PR with detailed notes
Please Note:
- Focus on technical improvements only
- No gambling-related suggestions
- Maintain academic tone
Not affiliated with Arizona Lottery. Data sourced from public AZ Lottery website. Use at your own risk.
Remember: 🎰 Lottery tickets always have negative expected value. This project exists purely as a technical demonstration of web scraping and data analysis techniques.