Export document with all content from one topic?

You can request 10 pages in a topic using a script like

wget https://meta.discourse.org/raw/TOPIC_ID\?page\={1..10}