Hi all – just jumping in here to say that @mcmcclur’s code was exactly what I was looking for! So thank you very much for sharing
I made a few small modifications (mainly additional code that makes sure to grab all posts in a topic, not just the first twenty) and the code is here: https://github.com/kitsandkats/ArchiveDiscourse, forked from @mcmcclur’s original repo and stored as a python file instead of a Jupyter notebook.
I’m very happy with how it turned out. Thanks again!