Skip to main content

A module to scrape biblehub.com, also cli app

Project description

BibleHubScrapper

A python module that retrieve a single verses 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] # 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

You can import the query method to use in scripts.

from BibleHubScrapper import query

bible_hub_query = query('Genesis 1:1')
print(bible_hub_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(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 are also bible_hub_query.format_[lexicons/tsks] method that returns the formatted and printed requested informati9on.

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 Distribution

BibleHubScrapper-1.0.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: BibleHubScrapper-1.0.1.tar.gz
  • Upload date:
  • Size: 4.5 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.0.1.tar.gz
Algorithm Hash digest
SHA256 118e913ca21e832a3c5ae67bb10a5eaec33cd5b343869046754d54e8600fdf3e
MD5 ad73afd4745a039bfdf3d79b4cefb0f7
BLAKE2b-256 f7cf4e55d44c2947d43463802a7c2a173ed22e904f1a256a1f2a264be7099744

See more details on using hashes here.

File details

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

File metadata

  • Download URL: BibleHubScrapper-1.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-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f41119af8c2293b30ae4de09889408ba6878d8a5a206f2415722d630a1b4e1ca
MD5 2cbfb224b474efa85f2d544ee104c655
BLAKE2b-256 3ca930cbf44d73e3a720a2b08df1357db084a8d7f95d81c35752f3e76f7bf05f

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