hdx-python-scraper 2.3.9__py3-none-any.whl → 2.4.0__py3-none-any.whl
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.
- hdx/scraper/_version.py +2 -2
- hdx/scraper/utilities/reader.py +8 -5
- {hdx_python_scraper-2.3.9.dist-info → hdx_python_scraper-2.4.0.dist-info}/METADATA +1 -1
- {hdx_python_scraper-2.3.9.dist-info → hdx_python_scraper-2.4.0.dist-info}/RECORD +6 -6
- {hdx_python_scraper-2.3.9.dist-info → hdx_python_scraper-2.4.0.dist-info}/WHEEL +0 -0
- {hdx_python_scraper-2.3.9.dist-info → hdx_python_scraper-2.4.0.dist-info}/licenses/LICENSE +0 -0
hdx/scraper/_version.py
CHANGED
hdx/scraper/utilities/reader.py
CHANGED
|
@@ -206,15 +206,18 @@ class Read(Retrieve):
|
|
|
206
206
|
if headers is None:
|
|
207
207
|
headers = 1
|
|
208
208
|
datasetinfo["headers"] = 1
|
|
209
|
-
kwargs["headers"] = headers
|
|
210
|
-
if isinstance(headers, list):
|
|
211
|
-
kwargs["fill_merged_cells"] = True
|
|
212
209
|
format = datasetinfo["format"]
|
|
213
210
|
kwargs["format"] = format
|
|
214
|
-
if
|
|
215
|
-
|
|
211
|
+
if format in ("xls", "xlsx"):
|
|
212
|
+
if not sheet:
|
|
213
|
+
sheet = 1
|
|
214
|
+
if isinstance(headers, list):
|
|
215
|
+
kwargs["fill_merged_cells"] = True
|
|
216
|
+
elif "fill_merged_cells" not in kwargs:
|
|
217
|
+
kwargs["fill_merged_cells"] = False
|
|
216
218
|
if sheet:
|
|
217
219
|
kwargs["sheet"] = sheet
|
|
220
|
+
kwargs["headers"] = headers
|
|
218
221
|
compression = datasetinfo.get("compression")
|
|
219
222
|
if compression:
|
|
220
223
|
kwargs["compression"] = compression
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: hdx-python-scraper
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.4.0
|
|
4
4
|
Summary: HDX Python scraper utilities to assemble data from multiple sources
|
|
5
5
|
Project-URL: Homepage, https://github.com/OCHA-DAP/hdx-python-scraper
|
|
6
6
|
Author-email: Michael Rans <rans@email.com>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
hdx/scraper/__init__.py,sha256=11ozJKiUsqDCZ3_mcAHhGYUyGK_Unl54djVSBBExFB4,59
|
|
2
|
-
hdx/scraper/_version.py,sha256=
|
|
2
|
+
hdx/scraper/_version.py,sha256=NXpAHvzuYHxlLDJV0489874frLu4dA2joFw1iHLLrOg,411
|
|
3
3
|
hdx/scraper/base_scraper.py,sha256=2eJifpb8G_KtEb9Z273suDCiMPteJsCBHwDEk3o0wA8,15433
|
|
4
4
|
hdx/scraper/runner.py,sha256=v5ToiTBOvFbkMOcBAoWGmDyO5bhGooTL8pPIt3BIQ8Y,53550
|
|
5
5
|
hdx/scraper/configurable/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -15,11 +15,11 @@ hdx/scraper/outputs/googlesheets.py,sha256=gPjzikxP4wmMBGL5LW50MXUcDq5nwCRMW74G1
|
|
|
15
15
|
hdx/scraper/outputs/json.py,sha256=uw9_yAVpHVPWQ8LtMUZKTH88okyrHQs_SVjT6HJOxZ4,9498
|
|
16
16
|
hdx/scraper/utilities/__init__.py,sha256=dvbp0qTV-kLvN4Xp0GQf8LjN3IqlytW1eaTmDjlyZy0,2391
|
|
17
17
|
hdx/scraper/utilities/fallbacks.py,sha256=08tvqVFuFV_gsvS7jqEiJUr7gqNILKCakDa8xMuIMpI,6186
|
|
18
|
-
hdx/scraper/utilities/reader.py,sha256=
|
|
18
|
+
hdx/scraper/utilities/reader.py,sha256=A8GeMAie9swvydouBeD3hPi2YuH8liBsLJsEiqUqqfw,26500
|
|
19
19
|
hdx/scraper/utilities/region_lookup.py,sha256=VSfIoBGmhS0lNgwe4kKIhHqP7k0DlJYI2JDdABAAmoM,3917
|
|
20
20
|
hdx/scraper/utilities/sources.py,sha256=KuhaTvvGzjuw0dbhWpmPFvSq5RWP9cY83nl687O3CSs,11513
|
|
21
21
|
hdx/scraper/utilities/writer.py,sha256=x-3xnOjvZEMUR2Op42eiBbaSmtNM6MY86adnL_Cob9s,16726
|
|
22
|
-
hdx_python_scraper-2.
|
|
23
|
-
hdx_python_scraper-2.
|
|
24
|
-
hdx_python_scraper-2.
|
|
25
|
-
hdx_python_scraper-2.
|
|
22
|
+
hdx_python_scraper-2.4.0.dist-info/METADATA,sha256=TZmLTpIowY1ta86DPlupiocA_uLH4Vda7uANNh9j38E,3361
|
|
23
|
+
hdx_python_scraper-2.4.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
24
|
+
hdx_python_scraper-2.4.0.dist-info/licenses/LICENSE,sha256=wc-4GpMn-ODs-U_bTe1YCiPVgvcjzrpYOx2wPuyAeII,1079
|
|
25
|
+
hdx_python_scraper-2.4.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|