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 on it from biblehub.com. Also a simple commandline application

Installation

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

As with most cli tools, arguments can be stacked with one hyphen, such as:

biblehub -cl [Reference] # Retrieves the cross-references and lexicon in addition to the passage

Script 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 specified field in an easy to read way.

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 (colors, verbosity, etc.)

Contributing

If you feel like improving the codebase, adding a feature, or checking my grammar, feel free! Just make sure to send a pull request against the development branch.

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.4.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

BibleHubScrapper-1.3.4-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: BibleHubScrapper-1.3.4.tar.gz
  • Upload date:
  • Size: 5.3 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.4.tar.gz
Algorithm Hash digest
SHA256 c23e11f323e392a35b348692f8765c103e2dd6f26f7dafb5945013b5b39b3a62
MD5 d65821c9725cc84691db1f2c39dd94e4
BLAKE2b-256 9d7c28b638b41f5d7187ebef22ad091da42c1dc806f5302425b37d6c9488e45f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: BibleHubScrapper-1.3.4-py3-none-any.whl
  • Upload date:
  • Size: 6.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-1.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f7cc32a01151454add346fac348e1c793408eb109dadcfd56031c446b912acac
MD5 b7f6e7c556702f634ff30eb257549848
BLAKE2b-256 231b67594ad3c56823168345b6d8d525e7c3d1d64e206e73abc53dce8c3c6b4b

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