Skip to content

Instantly share code, notes, and snippets.

@samcarton
samcarton / jjjsonHottest100.py
Created December 24, 2014 08:27
Python Script to scrape all songs from Triple J Hottest 100 Shortlist 2014
import requests
url = "https://s3.amazonaws.com/files.madeinkatana.com/jjj/tracks.json"
data = requests.get(url).json()
fo = open("songs.txt", "wb")
for d in data:
fo.write(bytes(d["artist"] + " - " + d["name"] + "\r\n", 'UTF-8'))
print(d["artist"] + " - " + d["name"])