Skip to content

Tools for retrieving bibles from biblegateway.com for use in AndBible

Notifications You must be signed in to change notification settings

Jaden-J/biblegateway-to-OSIS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

biblegateway-to-OSIS

Tools for retrieving bibles from biblegateway.com for use in AndBible

The "scraper" tool is a Java app which will retrieve a bible translation for biblegateway.com and save it as an XML file in OSIS format.

The "build" script will run a tool called osis2mod, which is part of the Sword project, to convert the OSIS file into zText format, which is what AndBible can use.

You will need to retrieve a copy of the Sword Utilities from http://crosswire.org/ftpmirror/pub/sword/utils/win32/sword-utilities-1.6.2.zip. These are the only binaries I've found that actually work on Windows. You may have an easier time on Linux.

The "push" script will helpfully copy a finished package into the correct location on your phone, if it is plugged in and AndBible is installed. It requires a .conf file for AndBible's use, an example of which (NASB.conf) is included.

This could all be rewritten as a web application, which I might well do some time, but I hope it may be helpful to anyone who would desparately like to get translations like the NASB, NIV, NKJV, etc into AndBible.

You'll need to do a bit of fiddling to get this all working, but hopefully it's easy enough.

P.S. I highly recommend using a caching tool at first, to allow you to aggressively cache the app's requests to biblegateway.com so that you don't inundate them with requests over and over again while you try to get it working. I used Polipo. Use the relaxTransparency = yes option to always return a hit from the cache when the data is present.

Disclaimer: I have no affiliation with biblegateway.com, Sword, or AndBible. I am not aware of any terms of service that biblegateway.com have which forbids scraping, but use this software at your own risk. Please consider the relevant copyright issues. I strongly recommend that you only use the resulting Bible texts for personal use. It is worth noting, however, that this is the same mechanism that other Bible apps on the Play store, such as LiveBible, use to retrieve Bible text for offline use.

About

Tools for retrieving bibles from biblegateway.com for use in AndBible

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 94.2%
  • Batchfile 5.8%