- Home
- Premium Memberships
- Lottery Results
- Forums
- Predictions
- Lottery Post Videos
- News
- Search Drawings
- Search Lottery Post
- Lottery Systems
- Lottery Charts
- Lottery Wheels
- Worldwide Jackpots
- Quick Picks
- On This Day in History
- Blogs
- Online Games
- Premium Features
- Contact Us
- Whitelist Lottery Post
- Rules
- Lottery Book Store
- Lottery Post Gift Shop
The time is now 1:50 pm
You last visited
June 5, 2026, 12:00 pm
All times shown are
Eastern Time (GMT-5:00)
Great coding day so far!
Published:
Starting with the first year of data for the PA Treasure Hunt (2007) is going well.
So far, I can use the requests library to fetch the url, target only the table where the results are stored, split the space separated numbers into a list, sort the entire list by date ascending, AND write it to a csv file... not a bad few hours work.
Up next is creating a loop to go from 2007 to 2025, sort ALL data by date ascending, write the column headers (overlooked that on the first run) and create the entire history file literally in seconds!
This is the build script, where it goes from the first year of the game to current. The update version will only need to use the current year, but will also have to check the csv file for the last date and only grab what is new... still thinking about that logic...
Even if nothing else develops, I will be able to
1. Guarantee there were no human errors on my side recording accurate game history
2. Update ALL history files in seconds rather than killing an hour
3. Will have the opportunity to spot check each file at random spots to validate the data.
But there is so much more, already planning to take the master HNC classification function and be able to set it up for any game... ONE function, ALL games!
Getting the update script to work and the solitary function for all games are must have additions to begin moving forward with GUI development, and now that code is being written and tested, progress is being made! Ideas are becoming functional programs!
So there PA Lottery, who needs a REST API when a little thought and coding get the same results... and I did not need to decipher that horrific RSS feed!
This is typical me, more excited about working code than actually winning anything...

Comments
Before celebrating too much, I need to see if this script can now auto detect the number of columns from the draw results table, so it can configure for games with more or less than 3 numeric columns.
Gonna spend the rest of the coding time I have just updating all of them and working out challenges as they arise. Can't believe this was even possible after years, no, decades of manual updates...
Post a Comment
Please Log In
To use this feature you must be logged into your Lottery Post account.
Not a member yet?
If you don't yet have a Lottery Post account, it's simple and free to create one! Just tap the Register button and after a quick process you'll be part of our lottery community.
Register