warn-scraper 1.2.77__py3-none-any.whl → 1.2.79__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.
- warn/scrapers/ca.py +18 -17
- warn/scrapers/ga.py +1 -1
- {warn_scraper-1.2.77.dist-info → warn_scraper-1.2.79.dist-info}/METADATA +1 -1
- {warn_scraper-1.2.77.dist-info → warn_scraper-1.2.79.dist-info}/RECORD +8 -8
- {warn_scraper-1.2.77.dist-info → warn_scraper-1.2.79.dist-info}/LICENSE +0 -0
- {warn_scraper-1.2.77.dist-info → warn_scraper-1.2.79.dist-info}/WHEEL +0 -0
- {warn_scraper-1.2.77.dist-info → warn_scraper-1.2.79.dist-info}/entry_points.txt +0 -0
- {warn_scraper-1.2.77.dist-info → warn_scraper-1.2.79.dist-info}/top_level.txt +0 -0
warn/scrapers/ca.py
CHANGED
@@ -138,23 +138,24 @@ def _extract_excel_data(wb_path):
|
|
138
138
|
# Loop through all the rows
|
139
139
|
payload = []
|
140
140
|
for row in rows:
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
141
|
+
if row[0].value:
|
142
|
+
first_cell = row[0].value.strip().lower()
|
143
|
+
# Exit if we've reached summary row at bottom
|
144
|
+
if first_cell == "report summary":
|
145
|
+
break
|
146
|
+
|
147
|
+
data = {
|
148
|
+
"county": row[0].value.strip(),
|
149
|
+
"notice_date": _convert_date(row[1].value),
|
150
|
+
"received_date": _convert_date(row[2].value),
|
151
|
+
"effective_date": _convert_date(row[3].value),
|
152
|
+
"company": row[4].value.strip(),
|
153
|
+
"layoff_or_closure": row[5].value.strip(),
|
154
|
+
"num_employees": row[num_employees_index].value,
|
155
|
+
"address": row[address_index].value.strip(),
|
156
|
+
"source_file": str(wb_path).split("/")[-1],
|
157
|
+
}
|
158
|
+
payload.append(data)
|
158
159
|
return payload
|
159
160
|
|
160
161
|
|
warn/scrapers/ga.py
CHANGED
@@ -129,7 +129,7 @@ def scrape(
|
|
129
129
|
filehref = BeautifulSoup(listing[0], features="html5lib")("a")[0]["href"]
|
130
130
|
fileid = BeautifulSoup(listing[0], features="html5lib")("a")[0].contents[0]
|
131
131
|
targetfilename = cache_dir / ("ga/" + fileid + ".format3")
|
132
|
-
utils.fetch_if_not_cached(targetfilename, filehref)
|
132
|
+
utils.fetch_if_not_cached(targetfilename, filehref, headers=headers)
|
133
133
|
|
134
134
|
# Parse detailed data
|
135
135
|
masterlist = []
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: warn-scraper
|
3
|
-
Version: 1.2.
|
3
|
+
Version: 1.2.79
|
4
4
|
Summary: Command-line interface for downloading WARN Act notices of qualified plant closings and mass layoffs from state government websites
|
5
5
|
Home-page: https://github.com/biglocalnews/warn-scraper
|
6
6
|
Author: Big Local News
|
@@ -28,13 +28,13 @@ warn/scrapers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
28
28
|
warn/scrapers/ak.py,sha256=h7BYMTV0whwWAPhbzVDVKMMoVCFphKly70aiTHabPq4,1847
|
29
29
|
warn/scrapers/al.py,sha256=D0rT9GQ0vwfkRuveVAt-Po-T6b2TI1EPGeLOBy2m3_M,2240
|
30
30
|
warn/scrapers/az.py,sha256=elGbue01Gjf_DQ66Wy9qqGIOJsiY-KIKJOVeft8pCXg,1447
|
31
|
-
warn/scrapers/ca.py,sha256=
|
31
|
+
warn/scrapers/ca.py,sha256=VQOfjHXPCc-jYwh-EPGVVfnzvXB7pdmCt2uJ6QnMPRM,8600
|
32
32
|
warn/scrapers/co.py,sha256=g076Zqe8XA8tbW03HP6-03mJV8fft1niHfa5Sy6me9A,7388
|
33
33
|
warn/scrapers/ct.py,sha256=HLMmBSFhT5Y3vZQUwRyCTxiG5BMQXTfG3SEj5rkQEL4,4771
|
34
34
|
warn/scrapers/dc.py,sha256=_sHLnVqK_W90QqJb_W88yDlgPjoMl63LYZP3CJfdN9g,4484
|
35
35
|
warn/scrapers/de.py,sha256=GyM92A-lFwZAfRxgbO-sIWhRfmBEKirzchaPIv-u0o4,1364
|
36
36
|
warn/scrapers/fl.py,sha256=YJ6Qt-jJZ7_iUKlHDaQuaV2gRmae8AJKS5dwwChadBE,9563
|
37
|
-
warn/scrapers/ga.py,sha256=
|
37
|
+
warn/scrapers/ga.py,sha256=o_OF4zPQ3vJM8USQPD7l_ThyRWAzUZkwrwLHCvWmHMI,7429
|
38
38
|
warn/scrapers/hi.py,sha256=pSplAP15_ZBfQtcywyErmvNcrk7u55TjZj_F0Nqw9L8,5660
|
39
39
|
warn/scrapers/ia.py,sha256=zOncaA9M0d6paT4pB7UU_4D_yxUgeUiGRcnpKi9DsRA,1999
|
40
40
|
warn/scrapers/id.py,sha256=FldJHv8sqBVKIdq7YlOK_O3Uh2Xj9i0WL7wQgszBgTA,5857
|
@@ -65,9 +65,9 @@ warn/scrapers/va.py,sha256=13lhkQrSkPGHEiWUuf1qiS890PWYE5gV-TgISpoiQnc,1711
|
|
65
65
|
warn/scrapers/vt.py,sha256=d-bo4WK2hkrk4BhCCmLpEovcoZltlvdIUB6O0uaMx5A,1186
|
66
66
|
warn/scrapers/wa.py,sha256=UXdVtHZo_a-XfoiyOooTRfTb9W3PErSZdKca6SRORgs,4282
|
67
67
|
warn/scrapers/wi.py,sha256=ClEzXkwZbop0W4fkQgsb5oHAPUrb4luUPGV-jOKwkcg,4855
|
68
|
-
warn_scraper-1.2.
|
69
|
-
warn_scraper-1.2.
|
70
|
-
warn_scraper-1.2.
|
71
|
-
warn_scraper-1.2.
|
72
|
-
warn_scraper-1.2.
|
73
|
-
warn_scraper-1.2.
|
68
|
+
warn_scraper-1.2.79.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
69
|
+
warn_scraper-1.2.79.dist-info/METADATA,sha256=kA_xWrCJ3_MlN0hnEeFCsYdamr6W_G-HyY_WsGgwPz0,2025
|
70
|
+
warn_scraper-1.2.79.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
71
|
+
warn_scraper-1.2.79.dist-info/entry_points.txt,sha256=poh_oSweObGlBSs1_2qZmnTodlOYD0KfO7-h7W2UQIw,47
|
72
|
+
warn_scraper-1.2.79.dist-info/top_level.txt,sha256=gOhHgNEkrUvajlzoKkVOo-TlQht9MoXnKOErjzqLGHo,11
|
73
|
+
warn_scraper-1.2.79.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|