← cd ..
bible-bot
Webscape the KJV, WEBUS, and ASV versions of the bible, stash the verses into a sqlite database, and serve them via an API.
Installation
To install, run:
git clone https://github.com/phillip-england/bible-bot
Scraping, DB Generation, and Serving
Start the program to scape The Bible from https://bible.com (this will take a few minutes), save the results in an sqlite db, and serve them on port 8080:
cd bible-bot
go run main.go
Accessing the Verses
The API is structured as follows:
/TRANSLATION/BOOK/CHAPTER/VERSE
To access Genesis 1:1 from the KJV, run (make sure the serve is running on port 8080):
curl localhost:8080/KJV/GEN/1/1
Book Names
Each book of The Bible has an abbreviated name, here are the abbreviations:
Genesis:GEN
Exodus:EXO
Leviticus:LEV
Numbers:NUM
Deuteronomy:DEU
Joshua:JOS
Judges:JDG
Ruth:RUT
1 Samuel:1SA
2 Samuel:2SA
1 Kings:1KI
2 Kings:2KI
1 Chronicles:1CH
2 Chronicles:2CH
Ezra:EZR
Nehemiah:NEH
Esther:EST
Job:JOB
Psalms:PSA
Proverbs:PRO
Ecclesiastes:ECC
Song of Solomon:SNG
Isaiah:ISA
Jeremiah:JER
Lamentations:LAM
Ezekiel:EZE
Daniel:DAN
Hosea:HOS
Joel:JOL
Amos:AMO
Obadiah:OBA
Jonah:JON
Micah:MIC
Nahum:NAH
Habakkuk:HAB
Zephaniah:ZEP
Haggai:HAG
Zechariah:ZEC
Malachi:MAL
Matthew:MAT
Mark:MAR
Luke:LUK
John:JHN
Acts:ACT
Romans:ROM
1 Corinthians:1CO
2 Corinthians:2CO
Galatians:GAL
Ephesians:EPH
Philippians:PHP
Colossians:COL
1 Thessalonians:1TH
2 Thessalonians:2TH
1 Timothy:1TI
2 Timothy:2TI
Titus:TIT
Philemon:PHM
Hebrews:HEB
James:JAS
1 Peter:1PE
2 Peter:2PE
1 John:1JN
2 John:2JN
3 John:3JN
Jude:JUD
Revelation:REV