I have a bad gambling habit.
I buy Powerball tickets.
Yes, I know the odds. Yes, I can do math. But I like to have the dream in my pocket, and participate in the absurd reality that it’s possible, however unlikely, that tomorrow I could wake up rich beyond the dreams of avarice.
I’m also lazy, so I’m certainly not going to go visit some web site to check my numbers. I want it automated.
Unfortunately, there is no official API but I found that the State of New York publishes a list of all Powerball results going back to 2010, and they update the file the day after each drawing.
Hence, powerball-checker.py was born.
The code is on Github. It’s very straightforward. One caveat is that if you buy “Quick Draw” tickets where the computer picks the numbers for you, this script is useless unless you want to edit it each time.
To use, simply edit to include your email address and numbers, and set it up in cron (example included) and then every Tuesday, Thursday, and Sunday – the days after Powerball results are drawn – you’ll get an email telling you if you’ve won anything.
The code is Python so it should be easy to modify if you want to tweak it. Enjoy and good luck!
Related Posts:
Has the Biggest Performance Bottleneck in Python Finally Been Slain?
Enjoy This Index of Thousands of FREE Programming Books! Python, Rust, Javascript, Java, C#, C++, Y...
How to Permanently Dowload Any Book You Can Borrow on archive.org as a PDF
Setup Odoo? Swap out Slack? Create Plugins for Python? Dynamic DNS? We've Got the Tutorials!
Free Udemy Courses! Our Community Resource Just Keeps Going
Implement a Plugin Architecture in Python with Only Two Lines of Code!
- About Those Social Security Zombies…are Elon’s Teens Just Unfamiliar with COBOL? - February 20, 2025
- Will You Glimpse the Future Watching “What’s Next? The Future with Bill Gates”?No. - February 19, 2025
- Need a Fast 10Gbps Uplink with Unlimited Bandwidth on a Cheap VPS?Check Out This Offer From MetWeb! - February 18, 2025
Leave a Reply