Terminal driven lottery checker. Currently supports Powerball and MegaMillions, but configured in a way to easily add more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Funky Waddle ca52ffd5ef Update to be multi-ticket reportable. 1 year ago
lib Update to be multi-ticket reportable. 1 year ago
megamillions Update to be multi-ticket reportable. 1 year ago
powerball Update to be multi-ticket reportable. 1 year ago
.gitignore Update to be multi-ticket reportable. 1 year ago
LotteryChecker.sublime-project Update to be multi-ticket reportable. 1 year ago
README.md initial commit 2 years ago
play.py add the total winnings output 2 years ago
requirements.txt add requirements.txt file 2 years ago

README.md

Generic Lottery game number checker

Currently includes Powerball and Megamillions.

You add your picks to {game}/picks.py, and run ./play -g {gamename} eg .play.py -g powerball

The script will pull the current winning numbers from an rss feed, and compare them to each ticket you list in the picks.py file for that game.

The output per ticket:

Winning Numbers: [2, 13, 32, 33, 48]
Winning Powerball: 22
Your Numbers: (1, 2, 3, 4, 5)
Your Powerball: 9
Matched Numbers: [2]
Matched Powerball: False
Not a Winner!

OR

Winning Numbers: [2, 13, 32, 33, 48]
Winning Powerball: 22
Your Numbers: (1, 2, 3, 4, 5)
Your Powerball: 22
Matched Numbers: [2]
Matched Powerball: True
Ticket is worth: 8