In the prior post, I had been publishing the showing times into CSV, which I was pulling in to Google Sheets.
Seems like a more natural way to show a sequence of things in time might be a calendar app, so I poked around with the Google Docs API.
I started off with the Python Quickstart: https://developers.google.com/google-apps/calendar/quickstart/python which walked through getting the client secret and OAuth bits. I then followed (cut-and-pasted) examples from https://developers.google.com/google-apps/calendar/v3/reference/events/insert to put the showings into a calendar.
If you'd like to see the calendar, maybe because you're going to SIFF and want to see the movies in a different format than siff.net provides, that's cool - check out this link: https://www.google.com/calendar/embed?src=18j890v2366vkfpcn9nhn3828k%40group.calendar.google.com&ctz=America/Los_Angeles
There's a few problems, including Unicode still giving me grief, which I'm currently avoiding by just dropping the movies that have difficult accents. I might want to watch a movie about sake, but if it's "saké", then it's a problem. Also, some of the special programs have pages that are formatted a little differently, leading to at least one event ostensibly screening at "Buy".
I may continue to tinker, or maybe I walk away from it - it's plenty useful as it is now for me. If it's useful to you, that's groovy, as well.
No comments:
Post a Comment