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
Built Distribution
File details
Details for the file BibleHubScrapper-1.2.0.tar.gz
.
File metadata
- Download URL: BibleHubScrapper-1.2.0.tar.gz
- Upload date:
- Size: 4.7 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce2109f87c332424fe0430d57fac4106a39f33897f604d14ffeccee0b9a714fb |
|
MD5 | 8e298af6cb4e49a801902f1ba95e3e14 |
|
BLAKE2b-256 | b9238f81131e4d4c383344e85adb00fabba21aa81c22227ed8d03eb47dd0efd5 |
File details
Details for the file BibleHubScrapper-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: BibleHubScrapper-1.2.0-py3-none-any.whl
- Upload date:
- Size: 6.0 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4457a7decb7d572efceee1efd644c25ba90853df9627b509a29bbf5c32c237e |
|
MD5 | abdee3eac45bc433e825dac08a1e41c2 |
|
BLAKE2b-256 | 6a8777177279e5e9e5554c6dbcb3888141dca29da91d91478b399f9dd61558ad |