Skip to main content

A module to scrape biblehub.com, also cli app

Project description

BibleHubScrapper

A python module to retrieve single verses from biblehub.com. Also includes commandline arguments.

Commandline

To retrieve all of the currently available information on a reference, use the a tag:

biblehub -a [Reference]

To only retrieve specific information pass in the corresponding tag:

biblehub -c [Reference] # Retrieves the reference and the cross-references
biblehub -t [Reference] # Retrieves the reference and the Treasury of Scripture
biblehub -l [Reference] # Retrieves the reference and the lexicon

Arguments can be stacked with one hyphen such as:

biblehub -cl [Reference] # Retrieves the reference, cross-references, and lexicon

Query Usage

from BibleHubScrapper import query

bible_hub_query = query('Genesis 1:1')
print(bible_hub_query.text) # In the beginning...

You can choose not to query certain fields by indicating in the parameters for example: query('Genesis 1:1', get_lexicons=False)

Useful fields

print(bible_hub_query.passage) # Genesis 1:1
print(bible_hub_query.version) # NIV (default)
print(bible_hub_query.lexicons) # Text, Hebrew words, translit, strong, and English defintions
print(bible_hub_query.crfs) # Cross References
print(bible_hub_query.tos) # Treasury of Scripture

there is also a bible_hub_query.print_lexicons method that may prove useful

CLI

Todo

  • Possibly support multiple verses
  • Add the text for verses in cross-references
  • Possibly make vim plugin
  • Consider fetching commentaries, or a specific one

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

BibleHubScrapper-0.0.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file BibleHubScrapper-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: BibleHubScrapper-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.4.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for BibleHubScrapper-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8743b260c564b66e8694d95235f607bf8bc29cf710da50c2e704144711643b19
MD5 09a100a400f7959716a9703969a13d34
BLAKE2b-256 397c1986f8d7054da54f0c9e48cb60964b2014385ec90c34c24228ee431e6e3b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page