There’s already a script that does this. Bible Study in Obsidian Kit (including the Bible in Markdown)
Not to rain on your parade or anything. If you can make it happen all within Obsidian without having to install Perl and Python, that would be pretty amazing and lower the bar to entry for a lot of people.