warn-scraper 1.2.85__py3-none-any.whl → 1.2.86__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/md.py +5 -2
- {warn_scraper-1.2.85.dist-info → warn_scraper-1.2.86.dist-info}/METADATA +1 -1
- {warn_scraper-1.2.85.dist-info → warn_scraper-1.2.86.dist-info}/RECORD +7 -7
- {warn_scraper-1.2.85.dist-info → warn_scraper-1.2.86.dist-info}/LICENSE +0 -0
- {warn_scraper-1.2.85.dist-info → warn_scraper-1.2.86.dist-info}/WHEEL +0 -0
- {warn_scraper-1.2.85.dist-info → warn_scraper-1.2.86.dist-info}/entry_points.txt +0 -0
- {warn_scraper-1.2.85.dist-info → warn_scraper-1.2.86.dist-info}/top_level.txt +0 -0
warn/scrapers/md.py
CHANGED
@@ -80,7 +80,7 @@ def scrape(
|
|
80
80
|
for href in href_list:
|
81
81
|
# Request the HTML
|
82
82
|
url = f"https://www.dllr.state.md.us/employment/{href}"
|
83
|
-
filename =
|
83
|
+
filename = f"md/{href}.html"
|
84
84
|
|
85
85
|
if href not in old_pages:
|
86
86
|
sleep(naptime) # Try to stop blocked connections by being less aggressive
|
@@ -92,7 +92,10 @@ def scrape(
|
|
92
92
|
cache.write(filename, html)
|
93
93
|
else:
|
94
94
|
r = utils.fetch_if_not_cached(
|
95
|
-
|
95
|
+
cache_dir / filename,
|
96
|
+
url,
|
97
|
+
headers=request_headers,
|
98
|
+
verify=request_verify,
|
96
99
|
)
|
97
100
|
html = cache.read(filename)
|
98
101
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: warn-scraper
|
3
|
-
Version: 1.2.
|
3
|
+
Version: 1.2.86
|
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
|
@@ -43,7 +43,7 @@ warn/scrapers/in.py,sha256=dAT40ROhhKiwLcwa_YJ6EyhsYBLe0IX2rOWXmNa6JMs,2026
|
|
43
43
|
warn/scrapers/ks.py,sha256=F_3biEMF7zgCX2XVuUACR74Vyzapta4SaM9SY3EuZCU,1266
|
44
44
|
warn/scrapers/ky.py,sha256=XjIojMpaoKbypa7l23IybP02jBijBCJG5UGqfO-EYjg,4365
|
45
45
|
warn/scrapers/la.py,sha256=60z-4LZY5xp6aX8r6HGGW3FaOVEGnxlG2Mfgpt4G2WE,12877
|
46
|
-
warn/scrapers/md.py,sha256=
|
46
|
+
warn/scrapers/md.py,sha256=hwgxXQnhyBWm8qF1dvxIThAX1MkrZbXLwRI9inO5t8g,4060
|
47
47
|
warn/scrapers/me.py,sha256=q36F4yJ7hvZsLayA3uBS1romo4X3Qf-sEi2Y7LAQCi8,1172
|
48
48
|
warn/scrapers/mi.py,sha256=9clZ9mATEJwdVLzDo_h66rK0aV5Zc7GGQ7AauutS6Wo,3591
|
49
49
|
warn/scrapers/mo.py,sha256=wnnwQAiVPwuheMqptMXZpyQdiKNghhKwTO-Bnh9oXoU,3492
|
@@ -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.86.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
69
|
+
warn_scraper-1.2.86.dist-info/METADATA,sha256=ywpbYFVG5StGGEjfIgHos1Sn5JTMBPrPoYhi5VBMSUE,2036
|
70
|
+
warn_scraper-1.2.86.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
|
71
|
+
warn_scraper-1.2.86.dist-info/entry_points.txt,sha256=poh_oSweObGlBSs1_2qZmnTodlOYD0KfO7-h7W2UQIw,47
|
72
|
+
warn_scraper-1.2.86.dist-info/top_level.txt,sha256=gOhHgNEkrUvajlzoKkVOo-TlQht9MoXnKOErjzqLGHo,11
|
73
|
+
warn_scraper-1.2.86.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|