warn-scraper 1.2.105__py3-none-any.whl → 1.2.106__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/dc.py +5 -0
- {warn_scraper-1.2.105.dist-info → warn_scraper-1.2.106.dist-info}/METADATA +1 -1
- {warn_scraper-1.2.105.dist-info → warn_scraper-1.2.106.dist-info}/RECORD +7 -7
- {warn_scraper-1.2.105.dist-info → warn_scraper-1.2.106.dist-info}/WHEEL +0 -0
- {warn_scraper-1.2.105.dist-info → warn_scraper-1.2.106.dist-info}/entry_points.txt +0 -0
- {warn_scraper-1.2.105.dist-info → warn_scraper-1.2.106.dist-info}/licenses/LICENSE +0 -0
- {warn_scraper-1.2.105.dist-info → warn_scraper-1.2.106.dist-info}/top_level.txt +0 -0
warn/scrapers/dc.py
CHANGED
@@ -85,6 +85,11 @@ def scrape(
|
|
85
85
|
r.encoding = "utf-8"
|
86
86
|
html = r.text
|
87
87
|
|
88
|
+
# A June 2025 entry includes a weird table inside a table cell.
|
89
|
+
# This is an ugly patch.
|
90
|
+
weirdtable = r"(\s+<table>\s+<tbody>\s+<tr>\s+<td>)(.*?)(</td>\s+</tr>\s+</tbody>\s+</table>\s+)"
|
91
|
+
html = re.sub(weirdtable, r"\2", html)
|
92
|
+
|
88
93
|
# Save it to the cache
|
89
94
|
cache_key = uuid.uuid5(uuid.NAMESPACE_URL, href)
|
90
95
|
cache.write(f"dc/{cache_key}.html", html)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: warn-scraper
|
3
|
-
Version: 1.2.
|
3
|
+
Version: 1.2.106
|
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
|
@@ -31,7 +31,7 @@ warn/scrapers/az.py,sha256=elGbue01Gjf_DQ66Wy9qqGIOJsiY-KIKJOVeft8pCXg,1447
|
|
31
31
|
warn/scrapers/ca.py,sha256=VQOfjHXPCc-jYwh-EPGVVfnzvXB7pdmCt2uJ6QnMPRM,8600
|
32
32
|
warn/scrapers/co.py,sha256=hUfqrzlhXQBkP4vxewVRrMZrgInoLer5S2MZlyYIQE4,7878
|
33
33
|
warn/scrapers/ct.py,sha256=PKeZtlB0-z2wCmYmGl_WYoVo2gzwKV36upZcJVaJxjM,4852
|
34
|
-
warn/scrapers/dc.py,sha256=
|
34
|
+
warn/scrapers/dc.py,sha256=NNTdjgUzC3jR-8F64U7dA77MzKo0dTTo64XjjpBu4cc,4743
|
35
35
|
warn/scrapers/de.py,sha256=GyM92A-lFwZAfRxgbO-sIWhRfmBEKirzchaPIv-u0o4,1364
|
36
36
|
warn/scrapers/fl.py,sha256=YJ6Qt-jJZ7_iUKlHDaQuaV2gRmae8AJKS5dwwChadBE,9563
|
37
37
|
warn/scrapers/ga.py,sha256=o_OF4zPQ3vJM8USQPD7l_ThyRWAzUZkwrwLHCvWmHMI,7429
|
@@ -65,9 +65,9 @@ warn/scrapers/va.py,sha256=hOPuiAjnTmtXCOdnBM_jAJuz9_u6oCxtbm2F-9m3ot0,10732
|
|
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.106.dist-info/licenses/LICENSE,sha256=ZV-QHyqPwyMuwuj0lI05JeSjV1NyzVEk8Yeu7FPtYS0,585
|
69
|
+
warn_scraper-1.2.106.dist-info/METADATA,sha256=eGgAOPnHhNXmKPGssgfGwKdtkZfn5QPz2qa2dP0kBQU,2385
|
70
|
+
warn_scraper-1.2.106.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
71
|
+
warn_scraper-1.2.106.dist-info/entry_points.txt,sha256=poh_oSweObGlBSs1_2qZmnTodlOYD0KfO7-h7W2UQIw,47
|
72
|
+
warn_scraper-1.2.106.dist-info/top_level.txt,sha256=gOhHgNEkrUvajlzoKkVOo-TlQht9MoXnKOErjzqLGHo,11
|
73
|
+
warn_scraper-1.2.106.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|