Not sure how far along you got with the above, but what I ended up doing was just using the Stack Overflow and Discourse APIs. Pulled the posts/answers I wanted from the Stack Overflow API, did some data processing/formatting and then used the Discourse API to create new posts based off the data.