-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcc.py
More file actions
26 lines (20 loc) · 722 Bytes
/
cc.py
File metadata and controls
26 lines (20 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import json
import requests
room = "Room 1" # Room Name
frab = "https://timetable.flawcon.xyz/2019/schedule/export/schedule.json" # Timetable/Schedule URL
sched = requests.get(frab).json()["schedule"]["conference"]["days"][0]["rooms"]
z = ""
for i in sched[room]:
if i["do_not_record"] == False:
print("From-until\t" + i["title"])
if len(i["persons"]) == 1:
for y in i["persons"]:
z = z + y["name"]
elif len(i["persons"]) > 1:
for y in i["persons"][:-1]:
z = z + y["name"] + ", "
z = z + i["persons"][len(i["persons"])-1]["name"]
else:
print("Error")
print("From-until\t- " + z)
z = ""