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.

Contributing

If you feel like improving the codebase, adding a feature, or checking my grammar, feel free! Checkout the issues I post for tasks you can help with, reference specific issues when making a PR. 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

biblehub-1.4.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

biblehub-1.4.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file biblehub-1.4.0.tar.gz.

File metadata

  • Download URL: biblehub-1.4.0.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 biblehub-1.4.0.tar.gz
Algorithm Hash digest
SHA256 676185105aed1ad7328b3c1065cd434a468a9dead3974c1cdfe0aaa11cce6dc4
MD5 82b3e1362a3edc2e276f1bd57a3a227d
BLAKE2b-256 366a4ca32c9f3fc2d119c0b7a355db2511d433791074e77891abdbdebb6ca89b

See more details on using hashes here.

File details

Details for the file biblehub-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: biblehub-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 9.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 biblehub-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d48def038450e65b4a53ae1c8a05261a9ff810da65541513abdcc19ba8cf7a1b
MD5 b95670be6f5fbaa5148dc36342dee619
BLAKE2b-256 d2bdf02f630374dd94256bf851fd53782eaab97def04cd97abbdb207c31d5f46

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