I think a better approach will be connecting to the NodeBB database and get the data directly, as other importers do. I wrote an importer for a custom forum so I don’t think it will be that complicated.
What Data store are you using for the NodeBB forum? MongoDB or Redis?