Skip to content

@blha303 /gist:f206d850919826372359 secret
Last active

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
import requests
temp = "%s | %s | [~~*%s*~~](http://www.twitch.tv/speeddemosarchivesda) **x**"
usertemp = "[{name}]({twitch})"
data = requests.get("http://blha303.com.au/agdq/schedule.json").json()
schedule = data["schedule"]
# This list should be complete, I made this manually
twitchn = {'Dragondarch': 'dragondarchsda', 'Kirua': 'http://twitch.tv/k1rua', 'andrewg': 'http://twitch.tv/andrewg1990', 'The Mexican Runner': 'http://twitch.tv/themexicanrunner', 'reflected': 'http://twitch.tv/reflectedsc', 'Caleb Hart': 'http://twitch.tv/calebhart42', 'SMK': 'http://twitch.tv/smk_machine', 'UraniumAchor': 'http://twitch.tv/uraniumanchor', 'Slade': 'http://twitch.tv/mgslade', 'Breakdown': 'http://twitch.tv/breakdown777', 'Marche Fighter Paladin': 'http://twitch.tv/marche_fighter_paladin', 'Tri-Hex': 'http://twitch.tv/trihex', 'Dime': 'http://twitch.tv/kingdime', 'MorKs': 'http://twitch.tv/morksqc', 'Duke Bilgewater': 'http://twitch.tv/duke_bilgewater', 'Sunblade': 'http://twitch.tv/sunblade89', 'PJ': 'http://twitch.tv/pjdicesare', 'Bertin': 'http://twitch.tv/sylux98', 'TenShotsTV': 'http://twitch.tv/tenshotstv', 'Jorf': 'http://twitch.tv/gerfuggery', 'Satoryu': 'http://twitch.tv/cwsatoryu', 'kuribon': 'http://twitch.tv/kuribonkb', 'lurk': 'http://twitch.tv/lurkchan', 'Joka': 'http://twitch.tv/jokaah', 'solidus': 'http://twitch.tv/sol1dus', 'Miles': 'http://twitch.tv/milessmb', 'Monopoli': 'http://twitch.tv/mistermonopoli', 'Zex': 'http://twitch.tv/zexxxxxxx', 'Mecha Richter': 'http://twitch.tv/mecha_richter', 'joka': 'http://twitch.tv/jokaah', 'dxtr': 'http://twitch.tv/dxtrslab', 'Carl Sagan': 'http://twitch.tv/carlsagan42', 'Blood Thunder': 'http://twitch.tv/bl00d_thunder', 'coolkid': 'http://twitch.tv/dabigbooi', 'grass': 'http://twitch.tv/doughyguy92', 'Krauser': 'http://twitch.tv/krauser318', 'BassBoost': 'http://twitch.tv/alexwanderson', 'Big Bossman': 'http://twitch.tv/thebigbossman007', 'Bismuth': 'http://twitch.tv/bismuth9', 'Arie2929': 'http://youtube.com/user/Arie2929'}
out = []
for a in schedule:
twlist = [usertemp.format(name=i, twitch=twitchn[i] if i in twitchn else i) for i in a["runners"]]
out.append(temp % (a["game"], ", ".join(twlist), a["runTime"]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.