I thought the presentation of 103 Americans and their thoughts on supporting Trump was well done, complete with photographs and audio recordings making it a nice multimedia exhibit. However, I wanted to do some analysis on the opinions of these 103 Trump supporters so I wrote a program to extract the data from the presentation.

Since this is just a quick and dirty task, I decided to use Javascript and the Node runtime and since one particular DOM node in the page hosted on USAToday was problematic, I decided to break out the block of HTML that contained the data I needed and save that as a seperate HTML file on my local system, which is why I am using fs.readFile instead of something like fetch.

Here’s code…

 

This produces a CSV file which I then import to Excel for easier analysis…

 

 

 


I was initially going to change some of the names of the various data structures to be less offensive, but then I remembered that this project is about analysing the prevailing reasons for supporting Trump and that NOT being politically-correct was one of the more common reasons. So, why the fuck would I go through the trouble of making my analysis politically correct? As far as I am concerned if they so anti-PC then they don’t have shit to stand on if they get take offense to my own politically incorrect analysis.