scripturelookup 0.0.1__tar.gz → 0.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {scripturelookup-0.0.1 → scripturelookup-0.0.3}/.gitignore +3 -0
- scripturelookup-0.0.3/PKG-INFO +164 -0
- scripturelookup-0.0.3/README.md +127 -0
- scripturelookup-0.0.3/requirements.txt +3 -0
- {scripturelookup-0.0.1 → scripturelookup-0.0.3}/src/scripturelookup/command_line.py +6 -2
- scripturelookup-0.0.3/src/scripturelookup/data/metadata-languages.min.json +1 -0
- scripturelookup-0.0.3/src/scripturelookup/data/metadata-scriptures.min.json +1 -0
- scripturelookup-0.0.3/src/scripturelookup/data.py +125 -0
- scripturelookup-0.0.3/src/scripturelookup/lookup.py +531 -0
- {scripturelookup-0.0.1 → scripturelookup-0.0.3}/src/scripturelookup/numbers.py +5 -5
- scripturelookup-0.0.3/src/scripturelookup.egg-info/PKG-INFO +164 -0
- scripturelookup-0.0.1/PKG-INFO +0 -40
- scripturelookup-0.0.1/README.md +0 -3
- scripturelookup-0.0.1/requirements.txt +0 -3
- scripturelookup-0.0.1/src/scripturelookup/data/metadata-languages.min.json +0 -940
- scripturelookup-0.0.1/src/scripturelookup/data/metadata-scriptures.min.json +0 -59792
- scripturelookup-0.0.1/src/scripturelookup/data.py +0 -58
- scripturelookup-0.0.1/src/scripturelookup/lookup.py +0 -307
- scripturelookup-0.0.1/src/scripturelookup.egg-info/PKG-INFO +0 -40
- {scripturelookup-0.0.1 → scripturelookup-0.0.3}/.github/workflows/publish.yml +0 -0
- {scripturelookup-0.0.1 → scripturelookup-0.0.3}/LICENSE +0 -0
- {scripturelookup-0.0.1 → scripturelookup-0.0.3}/pyproject.toml +0 -0
- {scripturelookup-0.0.1 → scripturelookup-0.0.3}/setup.cfg +0 -0
- {scripturelookup-0.0.1 → scripturelookup-0.0.3}/src/geezify-python-main/LICENSE +0 -0
- {scripturelookup-0.0.1 → scripturelookup-0.0.3}/src/geezify-python-main/README.md +0 -0
- {scripturelookup-0.0.1 → scripturelookup-0.0.3}/src/geezify-python-main/arabify.py +0 -0
- {scripturelookup-0.0.1 → scripturelookup-0.0.3}/src/geezify-python-main/arabify_test.py +0 -0
- {scripturelookup-0.0.1 → scripturelookup-0.0.3}/src/geezify-python-main/geezify.py +0 -0
- {scripturelookup-0.0.1 → scripturelookup-0.0.3}/src/geezify-python-main/geezify_test.py +0 -0
- {scripturelookup-0.0.1 → scripturelookup-0.0.3}/src/geezify-python-main/test_data.py +0 -0
- {scripturelookup-0.0.1 → scripturelookup-0.0.3}/src/scripturelookup/__init__.py +0 -0
- {scripturelookup-0.0.1 → scripturelookup-0.0.3}/src/scripturelookup.egg-info/SOURCES.txt +0 -0
- {scripturelookup-0.0.1 → scripturelookup-0.0.3}/src/scripturelookup.egg-info/dependency_links.txt +0 -0
- {scripturelookup-0.0.1 → scripturelookup-0.0.3}/src/scripturelookup.egg-info/entry_points.txt +0 -0
- {scripturelookup-0.0.1 → scripturelookup-0.0.3}/src/scripturelookup.egg-info/requires.txt +0 -0
- {scripturelookup-0.0.1 → scripturelookup-0.0.3}/src/scripturelookup.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: scripturelookup
|
|
3
|
+
Version: 0.0.3
|
|
4
|
+
Summary: Python and command-line utility for converting scripture references between formats.
|
|
5
|
+
Author-email: Samuel Bradshaw <samuel.h.bradshaw@gmail.com>
|
|
6
|
+
License: MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2024 Samuel Bradshaw
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
Project-URL: Repository, https://github.com/samuelbradshaw/python-scripture-lookup
|
|
28
|
+
Project-URL: Issues, https://github.com/samuelbradshaw/python-scripture-lookup/issues
|
|
29
|
+
Project-URL: Changelog, https://github.com/samuelbradshaw/python-scripture-lookup/releases
|
|
30
|
+
Keywords: python,command,scripture,bible,book of mormon,reference
|
|
31
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
32
|
+
Classifier: Programming Language :: Python :: 3
|
|
33
|
+
Requires-Python: >=3.8
|
|
34
|
+
Description-Content-Type: text/markdown
|
|
35
|
+
License-File: LICENSE
|
|
36
|
+
Requires-Dist: requests
|
|
37
|
+
|
|
38
|
+
# Scripture Lookup
|
|
39
|
+
|
|
40
|
+
Scripture Lookup is a Python library and command-line tool for looking up scripture verses or chapters. It can also convert scripture references between formats and languages. The tool is built around data from [Python Scripture Scraper](https://github.com/samuelbradshaw/python-scripture-scraper).
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## Installation
|
|
44
|
+
|
|
45
|
+
1. Install [Python 3](https://gist.github.com/samuelbradshaw/932d48ef1eff07e288e25e4355dbce5d) and the [Homebrew](https://brew.sh) package manager (if you don’t already have them installed).
|
|
46
|
+
2. Install icu4c via Homebrew:
|
|
47
|
+
```
|
|
48
|
+
brew install icu4c
|
|
49
|
+
```
|
|
50
|
+
3. Install Scripture Lookup:
|
|
51
|
+
```
|
|
52
|
+
pip install scripturelookup
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
## Command-line usage
|
|
57
|
+
|
|
58
|
+
Pattern:
|
|
59
|
+
```
|
|
60
|
+
scripturelookup [command] [input] [options]
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Examples:
|
|
64
|
+
```
|
|
65
|
+
% scripturelookup get_content "john 3:16" --lang "en"
|
|
66
|
+
16 ¶ For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.
|
|
67
|
+
|
|
68
|
+
% scripturelookup get_label "니파이전서 3:7" --lang "fr" --abbreviated
|
|
69
|
+
1 Né 3:7
|
|
70
|
+
|
|
71
|
+
% scripturelookup get_church_url "helaman 5:12"
|
|
72
|
+
https://www.churchofjesuschrist.org/study/scriptures/bofm/hel/5?id=p12&lang=eng#p12
|
|
73
|
+
|
|
74
|
+
% scripturelookup get_label "/scriptures/nt/1-jn/3.2-3" --lang "cmn-Hant"
|
|
75
|
+
約翰一書3:2-3
|
|
76
|
+
|
|
77
|
+
% scripturelookup get_church_url "/scriptures/ot" --lang "es"
|
|
78
|
+
https://www.churchofjesuschrist.org/study/scriptures/ot?lang=spa
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
## Python usage
|
|
83
|
+
|
|
84
|
+
Examples:
|
|
85
|
+
```
|
|
86
|
+
from scripturelookup import lookup
|
|
87
|
+
|
|
88
|
+
lookup.get_content('john 3:16', lang = 'en')
|
|
89
|
+
# 16 ¶ For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.
|
|
90
|
+
|
|
91
|
+
lookup.get_label('니파이전서 3:7', lang = 'fr', abbreviated = True)
|
|
92
|
+
# 1 Né 3:7
|
|
93
|
+
|
|
94
|
+
lookup.get_church_url('helaman 5:12')
|
|
95
|
+
# https://www.churchofjesuschrist.org/study/scriptures/bofm/hel/5?id=p12&lang=eng#p12
|
|
96
|
+
|
|
97
|
+
lookup.get_label('/scriptures/nt/1-jn/3.2-3', lang = 'cmn-Hant')
|
|
98
|
+
# 約翰一書3:2-3
|
|
99
|
+
|
|
100
|
+
lookup.get_church_url('/scriptures/ot', lang = 'es')
|
|
101
|
+
# https://www.churchofjesuschrist.org/study/scriptures/ot?lang=spa
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
## Commands, inputs, and options
|
|
106
|
+
|
|
107
|
+
### Commands
|
|
108
|
+
|
|
109
|
+
- **get_content** – Get chapter or verse content.
|
|
110
|
+
- **get_label** – Get a scripture reference label (i.e. "John 3:16").
|
|
111
|
+
- **get_church_uri** – Get a Gospel Library URI (i.e. "/scriptures/bofm/hel/5.12").
|
|
112
|
+
- **get_church_url** – Get a Gospel Library URL.
|
|
113
|
+
- **get_church_link** – Get an HTML link to Gospel Library.
|
|
114
|
+
- **get_reference_objects** – Get a list of references as objects.
|
|
115
|
+
- **get_reference_attributes** – Get a list of references as dictionaries.
|
|
116
|
+
- **sort_references** – Sort a list of references by label or in traditional book order.
|
|
117
|
+
|
|
118
|
+
### Inputs
|
|
119
|
+
|
|
120
|
+
Any of the following input types are supported. You can also provide several inputs at once as a list (separated by semicolons or line-breaks).
|
|
121
|
+
|
|
122
|
+
- Chapter or verse references, in any supported language. Examples:
|
|
123
|
+
- John 3:16
|
|
124
|
+
- Enos 1:13, 15–18
|
|
125
|
+
- Psalm 23
|
|
126
|
+
- Gen. 1:3 (3–4)
|
|
127
|
+
- D&C 20:23; 76:41
|
|
128
|
+
- Scripture publication or book names. Examples:
|
|
129
|
+
- Old Testament
|
|
130
|
+
- Book of Mormon
|
|
131
|
+
- 1 Corinthians
|
|
132
|
+
- Psalms
|
|
133
|
+
- Gospel Library URIs (starting with `/scriptures`). Examples:
|
|
134
|
+
- /scriptures/ot/gen
|
|
135
|
+
- /scriptures/nt/matt/1
|
|
136
|
+
- /scriptures/nt/john/3.16
|
|
137
|
+
- /scriptures/bofm/enos/1.13,15-18
|
|
138
|
+
- /scriptures/pgp
|
|
139
|
+
- Gospel Library URLs (old or new). Examples:
|
|
140
|
+
- https://www.churchofjesuschrist.org/study/scriptures/bofm/hel/5?id=p12&lang=eng#p12
|
|
141
|
+
- https://www.churchofjesuschrist.org/study/scriptures/ot?lang=eng
|
|
142
|
+
- http://lds.org/scriptures/bofm/1-ne/3.7?lang=eng
|
|
143
|
+
- [gospellibrary://content/scriptures/nt/john/3.16?lang=eng#16](https://www.churchofjesuschrist.org/study/scriptures/nt/john/3?id=p16&lang=eng#p16)
|
|
144
|
+
|
|
145
|
+
### Options
|
|
146
|
+
|
|
147
|
+
Several options are available. Some are only applicable to certain commands.
|
|
148
|
+
|
|
149
|
+
- **lang** (optional) – Output language. BCP 47 language codes and Gospel Library language codes are supported. Default: 'en'.
|
|
150
|
+
- **separator** (optional) – String separator between outputs when a list of references is requested. Default: '\n'.
|
|
151
|
+
- **sort_by** (optional) – Method for sorting references. Default: 'none'. Supported values: 'none', 'traditional', or 'label'.
|
|
152
|
+
- **source** (optional) – Content source. Default: 'python-scripture-scraper'. Supported values: 'python-scripture-scraper' or 'ChurchofJesusChrist.org'.
|
|
153
|
+
- **link_class** (optional) – String for the “class” attribute on links. Default: None.
|
|
154
|
+
- **link_target** (optional) – String for the “target” attribute on links. Default: None.
|
|
155
|
+
- **use_query_parameters** (optional) – Whether query parameters should be used on URIs. Default: False.
|
|
156
|
+
- **skip_lang** (optional) – Whether “lang” query parameters should be skipped on URLs. Default: False.
|
|
157
|
+
- **skip_fragment** (optional) – Whether fragments should be skipped on URLs. Default: False.
|
|
158
|
+
- **skip_book_name** (optional) – Whether book names should be skipped on labels. Default: False.
|
|
159
|
+
- **abbreviated** (optional) – Whether book abbrevions should be used on labels. Default: False.
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
## Acknowledgements
|
|
163
|
+
[Python Scripture Scraper](https://github.com/samuelbradshaw/python-scripture-scraper) – tool for scraping scripture content and metadata from ChurchofJesusChrist.org.
|
|
164
|
+
[geezify-python](https://github.com/logicalperson0/geezify-python) – tool for converting numbers to and from Geez numerals.
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# Scripture Lookup
|
|
2
|
+
|
|
3
|
+
Scripture Lookup is a Python library and command-line tool for looking up scripture verses or chapters. It can also convert scripture references between formats and languages. The tool is built around data from [Python Scripture Scraper](https://github.com/samuelbradshaw/python-scripture-scraper).
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Installation
|
|
7
|
+
|
|
8
|
+
1. Install [Python 3](https://gist.github.com/samuelbradshaw/932d48ef1eff07e288e25e4355dbce5d) and the [Homebrew](https://brew.sh) package manager (if you don’t already have them installed).
|
|
9
|
+
2. Install icu4c via Homebrew:
|
|
10
|
+
```
|
|
11
|
+
brew install icu4c
|
|
12
|
+
```
|
|
13
|
+
3. Install Scripture Lookup:
|
|
14
|
+
```
|
|
15
|
+
pip install scripturelookup
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## Command-line usage
|
|
20
|
+
|
|
21
|
+
Pattern:
|
|
22
|
+
```
|
|
23
|
+
scripturelookup [command] [input] [options]
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Examples:
|
|
27
|
+
```
|
|
28
|
+
% scripturelookup get_content "john 3:16" --lang "en"
|
|
29
|
+
16 ¶ For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.
|
|
30
|
+
|
|
31
|
+
% scripturelookup get_label "니파이전서 3:7" --lang "fr" --abbreviated
|
|
32
|
+
1 Né 3:7
|
|
33
|
+
|
|
34
|
+
% scripturelookup get_church_url "helaman 5:12"
|
|
35
|
+
https://www.churchofjesuschrist.org/study/scriptures/bofm/hel/5?id=p12&lang=eng#p12
|
|
36
|
+
|
|
37
|
+
% scripturelookup get_label "/scriptures/nt/1-jn/3.2-3" --lang "cmn-Hant"
|
|
38
|
+
約翰一書3:2-3
|
|
39
|
+
|
|
40
|
+
% scripturelookup get_church_url "/scriptures/ot" --lang "es"
|
|
41
|
+
https://www.churchofjesuschrist.org/study/scriptures/ot?lang=spa
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
## Python usage
|
|
46
|
+
|
|
47
|
+
Examples:
|
|
48
|
+
```
|
|
49
|
+
from scripturelookup import lookup
|
|
50
|
+
|
|
51
|
+
lookup.get_content('john 3:16', lang = 'en')
|
|
52
|
+
# 16 ¶ For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.
|
|
53
|
+
|
|
54
|
+
lookup.get_label('니파이전서 3:7', lang = 'fr', abbreviated = True)
|
|
55
|
+
# 1 Né 3:7
|
|
56
|
+
|
|
57
|
+
lookup.get_church_url('helaman 5:12')
|
|
58
|
+
# https://www.churchofjesuschrist.org/study/scriptures/bofm/hel/5?id=p12&lang=eng#p12
|
|
59
|
+
|
|
60
|
+
lookup.get_label('/scriptures/nt/1-jn/3.2-3', lang = 'cmn-Hant')
|
|
61
|
+
# 約翰一書3:2-3
|
|
62
|
+
|
|
63
|
+
lookup.get_church_url('/scriptures/ot', lang = 'es')
|
|
64
|
+
# https://www.churchofjesuschrist.org/study/scriptures/ot?lang=spa
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
## Commands, inputs, and options
|
|
69
|
+
|
|
70
|
+
### Commands
|
|
71
|
+
|
|
72
|
+
- **get_content** – Get chapter or verse content.
|
|
73
|
+
- **get_label** – Get a scripture reference label (i.e. "John 3:16").
|
|
74
|
+
- **get_church_uri** – Get a Gospel Library URI (i.e. "/scriptures/bofm/hel/5.12").
|
|
75
|
+
- **get_church_url** – Get a Gospel Library URL.
|
|
76
|
+
- **get_church_link** – Get an HTML link to Gospel Library.
|
|
77
|
+
- **get_reference_objects** – Get a list of references as objects.
|
|
78
|
+
- **get_reference_attributes** – Get a list of references as dictionaries.
|
|
79
|
+
- **sort_references** – Sort a list of references by label or in traditional book order.
|
|
80
|
+
|
|
81
|
+
### Inputs
|
|
82
|
+
|
|
83
|
+
Any of the following input types are supported. You can also provide several inputs at once as a list (separated by semicolons or line-breaks).
|
|
84
|
+
|
|
85
|
+
- Chapter or verse references, in any supported language. Examples:
|
|
86
|
+
- John 3:16
|
|
87
|
+
- Enos 1:13, 15–18
|
|
88
|
+
- Psalm 23
|
|
89
|
+
- Gen. 1:3 (3–4)
|
|
90
|
+
- D&C 20:23; 76:41
|
|
91
|
+
- Scripture publication or book names. Examples:
|
|
92
|
+
- Old Testament
|
|
93
|
+
- Book of Mormon
|
|
94
|
+
- 1 Corinthians
|
|
95
|
+
- Psalms
|
|
96
|
+
- Gospel Library URIs (starting with `/scriptures`). Examples:
|
|
97
|
+
- /scriptures/ot/gen
|
|
98
|
+
- /scriptures/nt/matt/1
|
|
99
|
+
- /scriptures/nt/john/3.16
|
|
100
|
+
- /scriptures/bofm/enos/1.13,15-18
|
|
101
|
+
- /scriptures/pgp
|
|
102
|
+
- Gospel Library URLs (old or new). Examples:
|
|
103
|
+
- https://www.churchofjesuschrist.org/study/scriptures/bofm/hel/5?id=p12&lang=eng#p12
|
|
104
|
+
- https://www.churchofjesuschrist.org/study/scriptures/ot?lang=eng
|
|
105
|
+
- http://lds.org/scriptures/bofm/1-ne/3.7?lang=eng
|
|
106
|
+
- [gospellibrary://content/scriptures/nt/john/3.16?lang=eng#16](https://www.churchofjesuschrist.org/study/scriptures/nt/john/3?id=p16&lang=eng#p16)
|
|
107
|
+
|
|
108
|
+
### Options
|
|
109
|
+
|
|
110
|
+
Several options are available. Some are only applicable to certain commands.
|
|
111
|
+
|
|
112
|
+
- **lang** (optional) – Output language. BCP 47 language codes and Gospel Library language codes are supported. Default: 'en'.
|
|
113
|
+
- **separator** (optional) – String separator between outputs when a list of references is requested. Default: '\n'.
|
|
114
|
+
- **sort_by** (optional) – Method for sorting references. Default: 'none'. Supported values: 'none', 'traditional', or 'label'.
|
|
115
|
+
- **source** (optional) – Content source. Default: 'python-scripture-scraper'. Supported values: 'python-scripture-scraper' or 'ChurchofJesusChrist.org'.
|
|
116
|
+
- **link_class** (optional) – String for the “class” attribute on links. Default: None.
|
|
117
|
+
- **link_target** (optional) – String for the “target” attribute on links. Default: None.
|
|
118
|
+
- **use_query_parameters** (optional) – Whether query parameters should be used on URIs. Default: False.
|
|
119
|
+
- **skip_lang** (optional) – Whether “lang” query parameters should be skipped on URLs. Default: False.
|
|
120
|
+
- **skip_fragment** (optional) – Whether fragments should be skipped on URLs. Default: False.
|
|
121
|
+
- **skip_book_name** (optional) – Whether book names should be skipped on labels. Default: False.
|
|
122
|
+
- **abbreviated** (optional) – Whether book abbrevions should be used on labels. Default: False.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
## Acknowledgements
|
|
126
|
+
[Python Scripture Scraper](https://github.com/samuelbradshaw/python-scripture-scraper) – tool for scraping scripture content and metadata from ChurchofJesusChrist.org.
|
|
127
|
+
[geezify-python](https://github.com/logicalperson0/geezify-python) – tool for converting numbers to and from Geez numerals.
|
|
@@ -7,9 +7,11 @@ from . import data, numbers, lookup
|
|
|
7
7
|
def main_cli():
|
|
8
8
|
parser = argparse.ArgumentParser(description='Scripture lookup')
|
|
9
9
|
parser.add_argument('command', help='Command to run. Required.')
|
|
10
|
-
parser.add_argument('
|
|
10
|
+
parser.add_argument('input', help='Input text to parse (one or more references).')
|
|
11
11
|
parser.add_argument('--lang', help='Output language. Default: "en".')
|
|
12
12
|
parser.add_argument('--separator', help='Separator when there are multiple results. Default: "\n".')
|
|
13
|
+
parser.add_argument('--sort-by', help='Sort the returned references ("none", "traditional", or "label"). Default: "none".')
|
|
14
|
+
parser.add_argument('--source', help='Content source ("python-scripture-scraper" or "ChurchofJesusChrist.org"). Default: "python-scripture-scraper".')
|
|
13
15
|
parser.add_argument('--link_class', help='Link "class" attribute.')
|
|
14
16
|
parser.add_argument('--link_target', help='Link "target" attribute.')
|
|
15
17
|
parser.add_argument('--use_query_parameters', action='store_true', help='Use "id" and "context" parameters in URIs.')
|
|
@@ -25,13 +27,15 @@ def main_cli():
|
|
|
25
27
|
args.input,
|
|
26
28
|
lang = args.lang or 'en',
|
|
27
29
|
separator = args.separator or '\n',
|
|
30
|
+
sort_by = args.sort_by,
|
|
31
|
+
source = args.source or 'python-scripture-scraper',
|
|
28
32
|
link_class = args.link_class,
|
|
29
33
|
link_target = args.link_target,
|
|
30
34
|
use_query_parameters = args.use_query_parameters,
|
|
31
35
|
skip_lang = args.skip_lang,
|
|
32
36
|
skip_fragment = args.skip_fragment,
|
|
33
37
|
skip_book_name = args.skip_book_name,
|
|
34
|
-
abbreviated = args.abbreviated
|
|
38
|
+
abbreviated = args.abbreviated,
|
|
35
39
|
)
|
|
36
40
|
|
|
37
41
|
print(result)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"_about":"Generated 2024-11-06 by Python Scripture Scraper (https://github.com/samuelbradshaw/python-scripture-scraper)","languages":{"af":{"name":"Afrikaans","autonym":"Afrikaans","churchLang":"afr"},"am":{"name":"Amharic","autonym":"አማርኛ","churchLang":"amh"},"ar":{"name":"Arabic","autonym":"العربية","churchLang":"ara"},"ase":{"name":"American Sign Language (ASL)","autonym":"American Sign Language","churchLang":"ase"},"ay":{"name":"Aymara","autonym":"Aymar Aru","churchLang":"aym"},"be":{"name":"Belarusian","autonym":"Беларуская","churchLang":"bel"},"bfi":{"name":"British Sign Language (BSL)","autonym":"British Sign Language","churchLang":"bfi"},"bg":{"name":"Bulgarian","autonym":"Български","churchLang":"bul"},"bi":{"name":"Bislama","autonym":"Bislama","churchLang":"bis"},"bik":{"name":"Bikolano","autonym":"Bikol","churchLang":"bik"},"bla":{"name":"Blackfoot","autonym":"Nitsi’powahsin","churchLang":"bla"},"bm":{"name":"Bambara","autonym":"Bamanankan","churchLang":"bam"},"bn":{"name":"Bengali","autonym":"বাংলা","churchLang":"ben"},"ca":{"name":"Catalan","autonym":"Català","churchLang":"cat"},"cag":{"name":"Nivaclé","autonym":"Nivacle","churchLang":"cag"},"cak":{"name":"Kaqchikel (Cakchiquel)","autonym":"Cakchiquel","churchLang":"cak"},"ceb":{"name":"Cebuano","autonym":"Cebuano","churchLang":"ceb"},"ch":{"name":"Chamorro","autonym":"Chamoru","churchLang":"cha"},"chk":{"name":"Chuukese","autonym":"Fosun Chuuk","churchLang":"chk"},"cmn-Hans":{"name":"Mandarin (Simplified)","autonym":"简体中文 - 普通话","churchLang":"zhs"},"cmn-Hant":{"name":"Mandarin (Traditional)","autonym":"繁體中文 - 國語","churchLang":"zho"},"cmn-Latn":{"name":"Mandarin (Romanized/Pinyin)","autonym":"漢語拼音","churchLang":"cmn-Latn"},"cs":{"name":"Czech","autonym":"Česky","churchLang":"ces"},"cuk":{"name":"Kuna","autonym":"Dulegaya","churchLang":"cuk"},"cy":{"name":"Welsh","autonym":"Cymraeg","churchLang":"cym"},"da":{"name":"Danish","autonym":"Dansk","churchLang":"dan"},"de":{"name":"German","autonym":"Deutsch","churchLang":"deu"},"efi":{"name":"Efik","autonym":"Efik","churchLang":"efi"},"el":{"name":"Greek","autonym":"Ελληνικά","churchLang":"ell"},"en":{"name":"English","autonym":"English","churchLang":"eng"},"es":{"name":"Spanish","autonym":"Español","churchLang":"spa"},"et":{"name":"Estonian","autonym":"Eesti","churchLang":"est"},"eu":{"name":"Basque","autonym":"Euskera","churchLang":"eus"},"fat":{"name":"Fante","autonym":"Fante","churchLang":"fat"},"fi":{"name":"Finnish","autonym":"Suomi","churchLang":"fin"},"fj":{"name":"Fijian","autonym":"Vosa vakaviti","churchLang":"fij"},"fon":{"name":"Fon","autonym":"Fɔngbè","churchLang":"fon"},"fr":{"name":"French","autonym":"Français","churchLang":"fra"},"gil":{"name":"Kiribati (Gilbertese)","autonym":"Kiribati","churchLang":"gil"},"gn":{"name":"Guarani","autonym":"Guaraní (Avañe'ẽ)","churchLang":"grn"},"guz":{"name":"Gusii (Kisii)","autonym":"EkeGusii","churchLang":"guz"},"haw":{"name":"Hawaiian","autonym":"ʻŌlelo Hawaiʻi","churchLang":"haw"},"hi":{"name":"Hindi","autonym":"हिन्दी","churchLang":"hin"},"hif":{"name":"Hindi (Fiji)","autonym":"Fiji Hindi","churchLang":"hif"},"hil":{"name":"Hiligaynon","autonym":"Hiligaynon","churchLang":"hil"},"hmn":{"name":"Hmong","autonym":"Hmoob","churchLang":"hmn"},"hr":{"name":"Croatian","autonym":"Hrvatski","churchLang":"hrv"},"ht":{"name":"Haitian Creole","autonym":"Kreyòl Ayisyen","churchLang":"hat"},"hu":{"name":"Hungarian","autonym":"Magyar","churchLang":"hun"},"hy":{"name":"Armenian (East)","autonym":"Հայերեն","churchLang":"hye"},"hyw":{"name":"Armenian (West)","autonym":"արեւմտահայերէն","churchLang":"hyw"},"id":{"name":"Indonesian","autonym":"Bahasa Indonesia","churchLang":"ind"},"ig":{"name":"Igbo","autonym":"Igbo","churchLang":"ibo"},"ilo":{"name":"Ilokano","autonym":"Ilokano","churchLang":"ilo"},"is":{"name":"Icelandic","autonym":"íslenska","churchLang":"isl"},"it":{"name":"Italian","autonym":"Italiano","churchLang":"ita"},"ja":{"name":"Japanese","autonym":"日本語","churchLang":"jpn"},"ka":{"name":"Georgian","autonym":"ქართული","churchLang":"kat"},"kam":{"name":"Kamba","autonym":"Kikamba","churchLang":"kam"},"kek":{"name":"Kekchi","autonym":"Q’eqchi’","churchLang":"kek"},"kk":{"name":"Kazakh","autonym":"Қазақ","churchLang":"kaz"},"km":{"name":"Khmer (Cambodian)","autonym":"ភាសាខ្មែរ","churchLang":"khm"},"ko":{"name":"Korean","autonym":"한국어","churchLang":"kor"},"kos":{"name":"Kosraean","autonym":"Kahs Kosrae","churchLang":"kos"},"ksw":{"name":"Karen","autonym":"ကညီလံာ်ခီၣ်ထံ","churchLang":"ksw"},"ln":{"name":"Lingala","autonym":"Lingála","churchLang":"lin"},"lo":{"name":"Laotian","autonym":"ພາສາລາວ","churchLang":"lao"},"lt":{"name":"Lithuanian","autonym":"Lietuvių","churchLang":"lit"},"lua":{"name":"Tshiluba","autonym":"Tshiluba","churchLang":"lua"},"lv":{"name":"Latvian","autonym":"Latviešu","churchLang":"lav"},"mam":{"name":"Mam","autonym":"Mam","churchLang":"mam"},"meu":{"name":"Motu","autonym":"Motu","churchLang":"meu"},"mg":{"name":"Malagasy","autonym":"Malagasy","churchLang":"mlg"},"mh":{"name":"Marshallese","autonym":"Kajin Majōl","churchLang":"mah"},"mi":{"name":"Maori","autonym":"Te Reo Māori","churchLang":"mri"},"mk":{"name":"Macedonian","autonym":"Македонски","churchLang":"mkd"},"ml":{"name":"Malayalam","autonym":"മലയാളം","churchLang":"mal"},"mn":{"name":"Mongolian","autonym":"Монгол","churchLang":"mon"},"ms":{"name":"Malay","autonym":"Bahasa Melayu","churchLang":"msa"},"mt":{"name":"Maltese","autonym":"Malti","churchLang":"mlt"},"my":{"name":"Burmese (Myanmar)","autonym":"ဗမာစာ","churchLang":"mya"},"ne":{"name":"Nepali","autonym":"नेपाली","churchLang":"nep"},"niu":{"name":"Niuean","autonym":"ko e vagahau Niuē","churchLang":"niu"},"nl":{"name":"Dutch","autonym":"Nederlands","churchLang":"nld"},"no":{"name":"Norwegian","autonym":"Norsk","churchLang":"nor"},"nr":{"name":"Ndebele (Southern)","autonym":"isiNdebele","churchLang":"nbl"},"nso":{"name":"Sotho (Northern)","autonym":"sePêdi","churchLang":"nso"},"nv":{"name":"Navajo","autonym":"Diné bizaad","churchLang":"nav"},"ny":{"name":"Chewa","autonym":"Chichewa","churchLang":"nya"},"om":{"name":"Oromo","autonym":"Afaan Oromoo","churchLang":"orm"},"pag":{"name":"Pangasinan","autonym":"Pangasinan","churchLang":"pag"},"pam":{"name":"Pampango (Kapampangan)","autonym":"Pampango","churchLang":"pam"},"pap":{"name":"Papiamento","autonym":"Papiamento","churchLang":"pap"},"pau":{"name":"Palauan","autonym":"Palauan","churchLang":"pau"},"pes":{"name":"Persian (Iran) (Farsi)","autonym":"فارسی","churchLang":"pes"},"pl":{"name":"Polish","autonym":"Polski","churchLang":"pol"},"pon":{"name":"Pohnpeian","autonym":"Mahsen en Pohnpei","churchLang":"pon"},"pt":{"name":"Portuguese","autonym":"Português (Brasil)","churchLang":"por"},"pt-PT":{"name":"Portuguese (Portugal)","autonym":"Português (Portugal)","churchLang":"ept"},"quc":{"name":"Quiche","autonym":"Quiché","churchLang":"quc"},"quh":{"name":"Quechua (Bolivia)","autonym":"Quechua-Bolivia","churchLang":"quh"},"quz":{"name":"Quechua (Peru)","autonym":"Yunkay Quechua","churchLang":"quz"},"qvi":{"name":"Quichua (Ecuador)","autonym":"Kichwa","churchLang":"qvi"},"rar":{"name":"Rarotongan (Cook Islands Maori)","autonym":"Māori Kuki Airani","churchLang":"rar"},"ro":{"name":"Romanian","autonym":"Română","churchLang":"ron"},"ru":{"name":"Russian","autonym":"Русский","churchLang":"rus"},"rw":{"name":"Rwanda","autonym":"Kinyarwanda","churchLang":"kin"},"si":{"name":"Sinhala","autonym":"සිංහල","churchLang":"sin"},"sk":{"name":"Slovak","autonym":"Slovenčina","churchLang":"slk"},"sl":{"name":"Slovenian","autonym":"Slovenščina","churchLang":"slv"},"sm":{"name":"Samoan","autonym":"Gagana Samoa","churchLang":"smo"},"sn":{"name":"Shona","autonym":"Shona","churchLang":"sna"},"sq":{"name":"Albanian","autonym":"Shqip","churchLang":"alb"},"sr":{"name":"Serbian","autonym":"Српски","churchLang":"srp"},"ss":{"name":"Swazi","autonym":"siSwati","churchLang":"ssw"},"st":{"name":"Sotho (Southern)","autonym":"Sesotho","churchLang":"sot"},"sto":{"name":"Stoney Nakoda","autonym":"Îethka (Yethka)","churchLang":"sto"},"sv":{"name":"Swedish","autonym":"Svenska","churchLang":"swe"},"sw":{"name":"Swahili","autonym":"Kiswahili","churchLang":"swa"},"ta":{"name":"Tamil","autonym":"தமிழ்","churchLang":"tam"},"te":{"name":"Telugu","autonym":"తెలుగు","churchLang":"tel"},"th":{"name":"Thai","autonym":"ภาษาไทย","churchLang":"tha"},"tl":{"name":"Tagalog","autonym":"Tagalog","churchLang":"tgl"},"tn":{"name":"Tswana (Setswana)","autonym":"Setswana","churchLang":"tsn"},"to":{"name":"Tongan","autonym":"Faka-Tonga","churchLang":"ton"},"tpi":{"name":"Tok Pisin (Neomelanesian)","autonym":"Tok Pisin","churchLang":"tpi"},"tr":{"name":"Turkish","autonym":"Türkçe","churchLang":"tur"},"tvl":{"name":"Tuvalu","autonym":"gana Tuvalu","churchLang":"tvl"},"tw":{"name":"Twi","autonym":"Twi","churchLang":"twi"},"ty":{"name":"Tahitian","autonym":"Reo Tahiti","churchLang":"tah"},"tzo":{"name":"Tzotzil","autonym":"Bats'i k'op","churchLang":"tzo"},"uk":{"name":"Ukrainian","autonym":"Українська","churchLang":"ukr"},"ur":{"name":"Urdu","autonym":"اردو","churchLang":"urd"},"vi":{"name":"Vietnamese","autonym":"Tiếng Việt","churchLang":"vie"},"war":{"name":"Waray","autonym":"Waray","churchLang":"war"},"xh":{"name":"Xhosa","autonym":"isiXhosa","churchLang":"xho"},"yap":{"name":"Yapese","autonym":"Thin Nu Wa'ab","churchLang":"yap"},"yo":{"name":"Yoruba","autonym":"Èdè Yorùbá","churchLang":"yor"},"yua":{"name":"Maya (Yucatec)","autonym":"maayaʼ tʼàan","churchLang":"yua"},"yue-Hant":{"name":"Cantonese (Traditional)","autonym":"繁體中文 - 廣東話","churchLang":"yue"},"zu":{"name":"Zulu","autonym":"isiZulu","churchLang":"zul"}},"mapToBcp47":{"af":"af","afr":"af","am":"am","amh":"am","ar":"ar","ara":"ar","ase":"ase","ay":"ay","aym":"ay","be":"be","bel":"be","bfi":"bfi","bg":"bg","bul":"bg","bi":"bi","bis":"bi","bik":"bik","bla":"bla","bm":"bm","bam":"bm","bn":"bn","ben":"bn","ca":"ca","cat":"ca","cag":"cag","cak":"cak","ceb":"ceb","ch":"ch","cha":"ch","chk":"chk","cmn-Hans":"cmn-Hans","zhs":"cmn-Hans","cmn-Hant":"cmn-Hant","zho":"cmn-Hant","cmn-Latn":"cmn-Latn","cs":"cs","ces":"cs","cuk":"cuk","cy":"cy","cym":"cy","da":"da","dan":"da","de":"de","deu":"de","efi":"efi","el":"el","ell":"el","en":"en","eng":"en","es":"es","spa":"es","et":"et","est":"et","eu":"eu","eus":"eu","fat":"fat","fi":"fi","fin":"fi","fj":"fj","fij":"fj","fon":"fon","fr":"fr","fra":"fr","gil":"gil","gn":"gn","grn":"gn","guz":"guz","haw":"haw","hi":"hi","hin":"hi","hif":"hif","hil":"hil","hmn":"hmn","hr":"hr","hrv":"hr","ht":"ht","hat":"ht","hu":"hu","hun":"hu","hy":"hy","hye":"hy","hyw":"hyw","id":"id","ind":"id","ig":"ig","ibo":"ig","ilo":"ilo","is":"is","isl":"is","it":"it","ita":"it","ja":"ja","jpn":"ja","ka":"ka","kat":"ka","kam":"kam","kek":"kek","kk":"kk","kaz":"kk","km":"km","khm":"km","ko":"ko","kor":"ko","kos":"kos","ksw":"ksw","ln":"ln","lin":"ln","lo":"lo","lao":"lo","lt":"lt","lit":"lt","lua":"lua","lv":"lv","lav":"lv","mam":"mam","meu":"meu","mg":"mg","mlg":"mg","mh":"mh","mah":"mh","mi":"mi","mri":"mi","mk":"mk","mkd":"mk","ml":"ml","mal":"ml","mn":"mn","mon":"mn","ms":"ms","msa":"ms","mt":"mt","mlt":"mt","my":"my","mya":"my","ne":"ne","nep":"ne","niu":"niu","nl":"nl","nld":"nl","no":"no","nor":"no","nr":"nr","nbl":"nr","nso":"nso","nv":"nv","nav":"nv","ny":"ny","nya":"ny","om":"om","orm":"om","pag":"pag","pam":"pam","pap":"pap","pau":"pau","pes":"pes","pl":"pl","pol":"pl","pon":"pon","pt":"pt","por":"pt","pt-PT":"pt-PT","ept":"pt-PT","quc":"quc","quh":"quh","quz":"quz","qvi":"qvi","rar":"rar","ro":"ro","ron":"ro","ru":"ru","rus":"ru","rw":"rw","kin":"rw","si":"si","sin":"si","sk":"sk","slk":"sk","sl":"sl","slv":"sl","sm":"sm","smo":"sm","sn":"sn","sna":"sn","sq":"sq","alb":"sq","sr":"sr","srp":"sr","ss":"ss","ssw":"ss","st":"st","sot":"st","sto":"sto","sv":"sv","swe":"sv","sw":"sw","swa":"sw","ta":"ta","tam":"ta","te":"te","tel":"te","th":"th","tha":"th","tl":"tl","tgl":"tl","tn":"tn","tsn":"tn","to":"to","ton":"to","tpi":"tpi","tr":"tr","tur":"tr","tvl":"tvl","tw":"tw","twi":"tw","ty":"ty","tah":"ty","tzo":"tzo","uk":"uk","ukr":"uk","ur":"ur","urd":"ur","vi":"vi","vie":"vi","war":"war","xh":"xh","xho":"xh","yap":"yap","yo":"yo","yor":"yo","yua":"yua","yue-Hant":"yue-Hant","yue":"yue-Hant","zu":"zu","zul":"zu"}}
|