Hacker News new | ask | show | jobs
Show HN: Icsp – Command-line iCalendar (.ics) to CSV utility (github.com)
2 points by lot3oo 1170 days ago
Hey folks, I've written this pure bash ICS to CSV conversion tool after needing it for a personal use case.

It all started with realizing that the Google Calendar REST api was too much of a hassle to integrate for a one-off use case (need to change account settings, do a Oauth login & manage tokens...). I then remembered that calendar exports were just a few clicks away in the .ics format, so I decided to use that instead.

I couldn't find anything online other than half broken scripts or language-specific libraries to parse .ics files, so I then went ahead and wrote a straight forward, pure bash implementation for CLI usage.

Hope this is useful for others as well!

I put in a few examples to try out in the readme on Github, let me know if you try it out!

1 comments

Thanks so much for crafting and sharing this, lot3oo. I've been archiving Calendar.app events via icalBuddy[1,2] like so[3], but there's no telling how much longer it will work (last update was a decade ago). Having a straightforward shell script that can convert ICS to CSV should work well for a long time to come (so long as Apple doesn't pull support for exporting to ICS, of course). Thanks again!

[1] https://hasseg.org/icalBuddy/

[2] https://github.com/ali-rantakari/icalBuddy

[3] https://tinyapps.org/blog/201804010700_archiving_ical_plain_...