Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: LonePalm; Snowybear

Thanks. I\we get it. It’s a pain without data definitions\structure...
I have been going thru the named files individually.
I just found the candidate file with names and id# of names and I got the ID#s connected to the US Rep Candidates.

I now have to scan the data files for one of those IDs and I should find the votes for the race.

Depends on what I find - one file or multiple files ? It’s at that point, now what ?

I don’t know how i would connect the files to make sense of the data.
I am 9 years retired from a lifetime of this stuff...and JSON\scripting is not in my wheelhouse.
Mostly mainframe dinosaur.

I can do this one at a time...manually...a PITA - there are 1483 CVREport.json files.
Not sure I want to do this...only have to wait 3 more days.

The download file from alaska is a zip file that contains 1498 JSON files with a combine size of 1.39GB(1,498,701,824 bytes).

the zip file here ( scroll down to Cast Vote Record ):
https://www.elections.alaska.gov/election-results/

there is a notation on some details of contents.

thanks again


5,498 posted on 11/17/2024 3:01:50 PM PST by stylin19a ("If You Can Read This, Thank a Teacher. If You Can Read It In English, Thank a Veteran" )
[ Post Reply | Private Reply | To 5477 | View Replies ]


To: stylin19a
The bulk of your files probably contain a nearly identical file format. These are probably the precinct results files.

You would have to manually look-up and tabulate the results for the candidates you are interested in to get the race results.

While largely a trivial exercise by computer, this would be tedious as hell to do by hand and only marginally better if you use a spreadsheet to hold the intermediate results and do the final tally.

Be sure you REALLY want to do this before getting started.

SpyNavy

Garde la Foi, mes amis! Nous nous sommes les sauveurs de la République! Maintenant et Toujours!
(Keep the Faith, my friends! We are the saviors of the Republic! Now and Forever!)

LonePalm, le Républicain du verre cassé (The Broken Glass Republican)

5,759 posted on 11/18/2024 12:23:06 PM PST by LonePalm (Commander and Chef)
[ Post Reply | Private Reply | To 5498 | View Replies ]

To: stylin19a
I am 9 years retired from a lifetime of this stuff...and JSON\scripting is not in my wheelhouse

Use chatgpt or some other AI tool. You will be amazed. I have it write code for me all the time... chatgpt loves JSON

6,240 posted on 11/20/2024 3:55:54 PM PST by darbymcgill
[ Post Reply | Private Reply | To 5498 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson