I cleaned it up a bit, such as removing {Radio edit} from one song title.

Getting the playlist for all of 2015

Justin pointed me to @triplejplays which is
a feed of songs being played, but it turns out Triple J has an api which lets
me enter a date range, and gives json back with plenty more data if needed.

Because the api is used for lazy-loading, it only returns 10 songs at a time.
So to get the full year’s playlist took 9833 requests.

start='2015-01-22T01:00:00'end='2016-01-22T01:00:00'# Loop from start to end datewhile[[$(date -d$start +"%s")-lt$(date -d$end +"%s")]];do
echo$start>&2
# The URL and output filenameurl="http://music.abcradio.net.au/api/v1/plays/search.json?station=triplej&from=$start&order=asc"output_fn="raw/$start"# Download the list
curl $url>$output_fn# Get the time of the last song playedstart=$(jq -r'.items[].played_time'$output_fn |tail -n1)# Add one second so it doesn't include the last song next timestart=$(date -u-d"$start + 1 second" +"%Y-%m-%dT%H:%M:%S")done

It pulled in 1.3G of json data. I used jq to extract just the parts we needed,
(title and artist):

From this it looks like there is not a strong relationship between plays and
votes. A song like Let It Happen was voted 5th even though it was the 227th
most played song. Maybe it was played during peak times?

On the other hand, Lean On and Do You Remember are near the top in both
plays and votes.

Here we see Golden Features No One and Halsey’s Ghost were second and third
most played songs, but rated lowly in the vote.

“People only vote for what gets played on the radio” - this is somewhat true.
There are no songs in the Hottest 100 that were not played on Triple J. But
Courtney Barnett’s Depreston made the list after being played only 23 times.
Big Jet Plane made it after being played only 12 times. So it’s not fair to
say that people only vote for songs that were on high rotation throughout the
year.