When there’s a matter of importing a certain number of topics, Discourse’s API can be very valuable.
If there was no existing Obsidian plugin to do this import, you’d probably rely on this.
Alternatively, a Ruby script could also do the job. ask.discourse.org can return reliable output for this kind of task.