I backed up all 17,000 topics from the forum so you didn’t have to. I created a simple script that took about 4-5 hours to run.
Simple PHP script:
Some more details:
I ran the script on a Raspberry Pi with 4gbs of ram. At it’s peak, the script used about <1% of the machine’s ram. I have about a 350 download and 12 upload internet connection, so if anyone has faster internet you can probably run this a bit faster than I did.
If you plan to try this on your own, don’t do it too often as its quite harsh on the Discourse servers (generates ~50k requests). Be sure to keep your computer online for the full duration of the script to prevent SSH disconnects.
Enjoy, I would love to see what everyone creates with this data.