biglocalnews / warn-scraper

Command-line interface for downloading WARN Act notices of qualified plant closings and mass layoffs from state government websites
https://warn-scraper.readthedocs.io
Apache License 2.0
29 stars 10 forks source link

ID scraper location changed again #655

Closed stucka closed 1 month ago

stucka commented 1 month ago

Idaho changed its static URL for WARN notices recently, and now appears to have gotten rid of a static location altogether.

The layoff notices now appear as a link from https://www.labor.idaho.gov/businesses/layoff-assistance/

There are at least four strategies to finding this link. None of them are bulletproof, as the page is already changing things around pretty arbitrarily.

-- Grab the link where the anchor text is "Current Idaho WARN notices" -- this seems like an accidental typo or a rephrasing would make it moot

-- Grab the link after the previous text, Employers Guide To WARN

-- Grab the link where the HREF includes "/warnnotice" -- this seems rather likely to fail.

-- Possibly a better but weirder approach: Split the page on<h2>Who to contact</h2> ... then grab the last link.