Skip to content

Instantly share code, notes, and snippets.

@Burekasim
Created November 18, 2025 09:36
Show Gist options
  • Select an option

  • Save Burekasim/ae482f441563ebaa8f84b5592691165b to your computer and use it in GitHub Desktop.

Select an option

Save Burekasim/ae482f441563ebaa8f84b5592691165b to your computer and use it in GitHub Desktop.
Export reinvent 2025 sessions to Google Calendar
from datetime import datetime
import json
import pytz
def return_day(timestamp: str, local_timezone: str):
local_tz = pytz.timezone(local_timezone)
dt = datetime.strptime(timestamp, "%Y/%m/%d %H:%M:%S")
dt_utc = pytz.utc.localize(dt)
adjusted_day = dt_utc.astimezone(local_tz)
return adjusted_day.strftime("%Y/%m/%d")
def return_time(timestamp: str, local_timezone: str):
local_tz = pytz.timezone(local_timezone)
dt = datetime.strptime(timestamp, "%Y/%m/%d %H:%M:%S")
dt_utc = pytz.utc.localize(dt)
adjusted_time = dt_utc.astimezone(local_tz)
return adjusted_time.strftime("%H:%M:%S")
if __name__ == '__main__':
# MODIFY
my_data = open('mydata.txt', 'r')
event_json = json.loads(my_data.read())
my_timezone = 'Asia/Jerusalem'
# End of MODIFY
print('Subject,Start Date,Start Time,End Date,End Time,All Day Event,Description,Location')
for event in event_json['mySchedule']:
event_name = event['title'].replace('"', '""')
event_code = event['code'].replace('"', '""')
event_room = event['room_name']
event_status = event['type']
description = event['abstract'].strip()
start_day = return_day(event['utcStartTime'], my_timezone)
start_time = return_time(event['utcStartTime'], my_timezone)
end_day = return_day(event['utcEndTime'], my_timezone)
end_time = return_time(event['utcEndTime'], my_timezone)
print(
f'"[{event_status}] {event_code} - {event_name}",{start_day},{start_time},{end_day},{end_time},False,"{description}","{event_room}"')
@Burekasim
Copy link
Author

How to export the events?

Open DevTools in your browser.
Go to the AWS ReInvent Calendar.
In the DevTools window, go to the Network tab and look for the "mydata" URL.
Copy the Response output, and paste in a new file called "mydata.txt" in the same folder as reinvent_export_2025.py.
Change the Timezone in line 26 to your timezone, for example: 'America/Los_Angeles'
Run the Python script python3 reinvent_export_2025.py > events.csv
Open Google Calendar.
Click Settings.
Click Import & Export in the menu on the left.
Upload the events.csv from step 7.

That's it - all the sessions are on your calendar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment