How to edit an import script on the production server?

I was in exactly that same position about 12 months ago. I learned enough Ruby to modify the SMF import script to migrate a 700,000 post/8,000 user forum and I’ve been happily running Discourse since our migration in March.

So what you’re trying to do is definitely achievable and the support you’ll get here will help you reach your goal.