Skip to main content

A module to scrape biblehub.com, also cli app

Project description

BibleHubScrapper

A python module that retrieve a single verse and the information provided on it from biblehub.com. Also, callable from the commandline.

Instillation

pip3 install BibleHubScrapper

Commandline

To retrieve all 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] # Also retrieves the cross-references
biblehub -t [Reference] # Also retrieves the lexicon

Arguments can be stacked with one hyphen such as:

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

Query Usage

You can import the query method to use in scripts.

from BibleHubScrapper import query

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

By default, it will query all possible fields. 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(biblehub_query.passage) # Genesis 1:1
print(biblehub_query.version) # NIV (default)
print(biblehub_query.lexicons) # Text, Hebrew words, translit, strong, and English defintions
print(biblehub_query.crfs) # Cross References
print(biblehub_query.tos) # Treasury of Scripture
print(biblehub_query.info) # Prints all the info queried on the verse. Also the same as the __str__

there are also biblehub_query.format_[field] method that returns the formatted field information.

Todo

  • Possibly support multiple verses
  • Possibly make vim plugin
  • Consider fetching commentaries, or a specific one
  • Implement search function
  • Reformat module structure
  • Create etc config file for formatting

Project details


Download files

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

Source Distribution

BibleHubScrapper-1.3.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

BibleHubScrapper-1.3.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file BibleHubScrapper-1.3.0.tar.gz.

File metadata

  • Download URL: BibleHubScrapper-1.3.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • 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-1.3.0.tar.gz
Algorithm Hash digest
SHA256 a5dada730de2d5dc18316530f6c0afd8b4a924c6f75fa262802d8b72756f748c
MD5 2ac05c89b964b63963fefddd417418a4
BLAKE2b-256 62d9e274f99d9b7340868f680861b1718c2f6eeef697031ff2d8f14591e16332

See more details on using hashes here.

File details

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

File metadata

  • Download URL: BibleHubScrapper-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 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-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 71385fc1d36b9df8698b288029e85a8792c934f2161496e093bed5fdb4657e4d
MD5 f6a8e56caf8cb8ab663045f4abaa765f
BLAKE2b-256 470b7870aca1720085567d9271ff8ae31de315b714676814697103d1e9741b3a

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