warn-scraper 1.2.65__py3-none-any.whl → 1.2.67__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 CHANGED
@@ -39,12 +39,12 @@ def scrape(
39
39
  today = datetime.today()
40
40
  current_year = today.year
41
41
 
42
- targetfile = f"dc/{current_year}.html"
42
+ targetfile = cache_dir / f"dc/{current_year}.html"
43
43
  url = f"https://does.dc.gov/page/industry-closings-and-layoffs-warn-notifications-{current_year}"
44
44
  success, content = utils.save_if_good_url(targetfile, url)
45
45
 
46
46
  if not success: # If we don't have a file for a new year
47
- targetfile = f"dc/{current_year - 1}.html"
47
+ targetfile = cache_dir / f"dc/{current_year - 1}.html"
48
48
  url = f"https://does.dc.gov/page/industry-closings-and-layoffs-warn-notifications-{current_year - 1}"
49
49
  success, content = utils.save_if_good_url(targetfile, url)
50
50
 
warn/scrapers/md.py CHANGED
@@ -34,7 +34,7 @@ def scrape(
34
34
  cache = Cache(cache_dir)
35
35
 
36
36
  # Get the page
37
- url = "http://www.dllr.state.md.us/employment/warn.shtml"
37
+ url = "https://www.dllr.state.md.us/employment/warn.shtml"
38
38
  r = utils.get_url(url)
39
39
  r.encoding = "utf-8"
40
40
  html = r.text
@@ -49,12 +49,11 @@ def scrape(
49
49
 
50
50
  # Download them all
51
51
  html_list = []
52
- html_list.append(html) # Save the source HTML for parsing also
52
+ html_list.append(html) # Save the source HTML for parsing also
53
53
 
54
54
  for href in href_list:
55
-
56
55
  # Request the HTML
57
- url = f"http://www.dllr.state.md.us/employment/{href}"
56
+ url = f"https://www.dllr.state.md.us/employment/{href}"
58
57
  r = utils.get_url(url)
59
58
  r.encoding = "utf-8"
60
59
  html = r.text
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: warn-scraper
3
- Version: 1.2.65
3
+ Version: 1.2.67
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
@@ -32,7 +32,7 @@ warn/scrapers/az.py,sha256=elGbue01Gjf_DQ66Wy9qqGIOJsiY-KIKJOVeft8pCXg,1447
32
32
  warn/scrapers/ca.py,sha256=ZXz6sceWpbKwSt4YA-WgD1SISN8vGJlwmlWhK5sURsk,8180
33
33
  warn/scrapers/co.py,sha256=8jLjV33s4yk2axSaXoDXakIXxrCoORJTCCr6TLLW32E,6956
34
34
  warn/scrapers/ct.py,sha256=yOvQy9ljtW3WJBq4MQIegkbkneXzFFos2l0qwnqcyQE,4771
35
- warn/scrapers/dc.py,sha256=e3iTkSyKNDR9XMCzBKH3JmQ66D5_xpwr5smT2rpfzLg,4458
35
+ warn/scrapers/dc.py,sha256=PVCyyxuNNyY9pf-3Ef0RMsH-GZHlrA0MuYAA4mlGqm8,4482
36
36
  warn/scrapers/de.py,sha256=yMpCFAAlIO2f4DVUQpPKKLzm52_Zpn9IuPPFBNX1pjQ,1386
37
37
  warn/scrapers/fl.py,sha256=mHymxjwNGtYXRxAwjUSIG1qeSp4Y_zzr4XDxPz9LAfY,9560
38
38
  warn/scrapers/ga.py,sha256=EuqBrMlBojH6eXOHisNqJAQcsnb8FPHDwWomNopw9Ys,7285
@@ -44,7 +44,7 @@ warn/scrapers/in.py,sha256=dAT40ROhhKiwLcwa_YJ6EyhsYBLe0IX2rOWXmNa6JMs,2026
44
44
  warn/scrapers/ks.py,sha256=F_3biEMF7zgCX2XVuUACR74Vyzapta4SaM9SY3EuZCU,1266
45
45
  warn/scrapers/ky.py,sha256=XjIojMpaoKbypa7l23IybP02jBijBCJG5UGqfO-EYjg,4365
46
46
  warn/scrapers/la.py,sha256=oTW1bWeArtNEyJ-HMKjJhernk_ahFfTMpt2SeP9PJT0,12853
47
- warn/scrapers/md.py,sha256=UtR3c0Ir8JHerVAkdnMkaiZYy3i2-7C9WuBQCr3LpZY,2846
47
+ warn/scrapers/md.py,sha256=cWWZqsfxN8bsLS0iyF9FYktMLczjb8n3_Bed_FxVr6g,2844
48
48
  warn/scrapers/me.py,sha256=q36F4yJ7hvZsLayA3uBS1romo4X3Qf-sEi2Y7LAQCi8,1172
49
49
  warn/scrapers/mi.py,sha256=9clZ9mATEJwdVLzDo_h66rK0aV5Zc7GGQ7AauutS6Wo,3591
50
50
  warn/scrapers/mo.py,sha256=LahCBrgMg44RP-r1fFpmHz4a-u4W61Y4OwocMQgcOfI,3493
@@ -66,9 +66,9 @@ warn/scrapers/va.py,sha256=DDuR4_2Jpaxg9nVmuM6PAR8v8xz3VgxTBG5sWJgz2q0,1582
66
66
  warn/scrapers/vt.py,sha256=d-bo4WK2hkrk4BhCCmLpEovcoZltlvdIUB6O0uaMx5A,1186
67
67
  warn/scrapers/wa.py,sha256=Il3RmJpKr7SbwUBxHxlhEFLoxy7zSiduyo8F2EddB2Y,4021
68
68
  warn/scrapers/wi.py,sha256=ClEzXkwZbop0W4fkQgsb5oHAPUrb4luUPGV-jOKwkcg,4855
69
- warn_scraper-1.2.65.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
70
- warn_scraper-1.2.65.dist-info/METADATA,sha256=LpIhXyZqAty2V8pg9de1WleVGqUa-Egd5Ba4KKgw7t0,2025
71
- warn_scraper-1.2.65.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
72
- warn_scraper-1.2.65.dist-info/entry_points.txt,sha256=poh_oSweObGlBSs1_2qZmnTodlOYD0KfO7-h7W2UQIw,47
73
- warn_scraper-1.2.65.dist-info/top_level.txt,sha256=gOhHgNEkrUvajlzoKkVOo-TlQht9MoXnKOErjzqLGHo,11
74
- warn_scraper-1.2.65.dist-info/RECORD,,
69
+ warn_scraper-1.2.67.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
70
+ warn_scraper-1.2.67.dist-info/METADATA,sha256=hVFmdfAftL7nm2gNdtlr25T4CjPVPHXOM6mJaVoXoe4,2025
71
+ warn_scraper-1.2.67.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
72
+ warn_scraper-1.2.67.dist-info/entry_points.txt,sha256=poh_oSweObGlBSs1_2qZmnTodlOYD0KfO7-h7W2UQIw,47
73
+ warn_scraper-1.2.67.dist-info/top_level.txt,sha256=gOhHgNEkrUvajlzoKkVOo-TlQht9MoXnKOErjzqLGHo,11
74
+ warn_scraper-1.2.67.dist-info/RECORD,,