2004 Election Results: Data Gathering Script

|

I wrote a Python script to collect the data from CNN.com. I would post the data, but it's probably copyrighted by CNN so I'm posting the script I used to gather it. All you need to do is run it, and it'll go through all 51 pages on CNN's site ripping the election results from each page. The data is then stored in 'election.txt' which is a tab delimited file that can be loaded in any decent spread sheet program.

The script can be downloaded here: http://www.semanticgap.com/scripts/cnn_results.txt

Ad's by Google