-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
26 lines (23 loc) · 1.06 KB
/
main.py
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
from rdwn_selenium import AddNewEvent
calendar_app = AddNewEvent()
if __name__ == '__main__':
calendar_app.go_to_calendar()
with open('games.json', encoding='utf-8') as json_file:
file = json.load(json_file)
for i in file:
calendar_app.expand_and_add_taxonomy(file[i]['title'],
file[i]['organization'],
file[i]['description'])
calendar_app.add_title(file[i]['title'])
calendar_app.add_date(file[i]['date_start'],
file[i]['date_end'],
file[i]['time_start'],
file[i]['time_end'],
file[i]['color'])
calendar_app.save()
print(f'==================================== \n'
f'{file[i]["title"]} ADDED TO CALENDAR \n'
f'====================================')
calendar_app.next_add()
calendar_app.close_session()