Programming need...possibly Perl?

Morrie20

Member
Oct 23, 2000
96
0
66
Here is the source site.

www.biblegateway.com

I'm looking to harvest each verse from the supplied translations below and somehow make it into html pages that I can search. Even if I have to cut and paste in some manner that would be better than doing each verse translation by translation.


I want to be able to have an html bible with every verse from the following translations transposed as such:



The Ideal Page would look as such in HTML -
Matthew 11:28 (note, if it would be more efficient to make the pages be one chapter, versus one verse, or a group of verses, it doesn't make a difference)
28?Come to me, all you who are weary and burdened, and I will give you rest.
28"Are you tired? Worn out? Burned out on religion? Come to me. Get away with me and you'll recover your life. I'll show you how to take a real rest.
28Come to Me, all you who labor and are heavy-laden and overburdened, and I will cause you to rest. I will ease and relieve and refresh your souls.
28Then Jesus said, "Come to me, all of you who are weary and carry heavy burdens, and I will give you rest. ... and so on.

I am looking to transpose all of these translations:
NIV
NASB
The Message
Amplified
New Living Translation
King James
New King James
Holman Christian Standard.

I have hosting access at telnap if I need to have a script hosted and just need to cut and paste in sections. Something a little more efficient than cutting and pasting verse by verse in the huge book is what I desire.

Oh, and if it's easy, I'd like to harvest all of the footnotes from each translation also.

Is this doable? If it's something you'd want a little kickback for your time for doing, it's worth it to me. It will help me tremendously.

Thanks,
Mo
 

Zugzwang152

Lifer
Oct 30, 2001
12,134
1
0
this is doable, but will be very tedious to set up.

you would have to make sure the GET variables are all structured the same, and you would have to make sure that the site content is laid out the same so you can point your script to the line you have to take out. From a quick look at the souce of your example page, I would find the translation line by searching for the <sup> tag, and spilling out everything to the next </p> tag.

for accessing pages, you'll be popping in the different book names and numbers in the address of the website. the tedious part is inputting into your script all the different chapters and their corresponding amount of lines.

To read the actual HTML code, you would use the fread function in PHP. If you intend to use Perl, a PM to notfred might be helpful.
 

mundane

Diamond Member
Jun 7, 2002
5,603
8
81
Python should work for this, too. For each book (Genesis, etc), assign how many chapters there are. Run through the script once for each chapter; the script uses urlopen, substitutes in the search term and version fields, then harvests the result. Repeat for each desired version. Parse through the HTML and extract the wanted portions, combine into a single HTML page for each chapter. It'd probably be preferred to generate them all at once and serve up that HTML, instead of dynamically on request.
 

Morrie20

Member
Oct 23, 2000
96
0
66
I'm programming-handicapped. This may be frustrating, but I'm regarding this like I regard my car. I'd love to learn how to fix it but my priorities in time remove that as a current possibility. I have no idea what you are suggesting although...

I do sincerely appreciate the responses. Is there someone out there willing to do it for me? We can discuss a price if that's your desire, as I know everyone's time is valuable to them. LMK
 

Schrodinger

Golden Member
Nov 4, 2004
1,274
0
0
Check your private messages (left side at the top). I'll give it a look in a day or so once I get my homework out of the way and some sleep time in. No payment neccessary.