Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The HASC Crawler has been reported as stale by the crawler status tracker
After some investigation I found that the site had been updated. So some changes were needed to traverse pages correctly and CSS selectors needed to be updated.
There was also a minor issue in the AM/PM not getting picked up in the publication date so I addressed that.
I also refactored the code to match the other newer crawlers.
Here are two examples of what the metadata looks like now as compared to previously (New on the left)
![Screenshot 2024-06-25 at 3 28 39 PM](https://private-user-images.githubusercontent.com/52083309/342900634-063e5516-710e-4145-86d8-4d09190ef843.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyMTM2NDgsIm5iZiI6MTcyNTIxMzM0OCwicGF0aCI6Ii81MjA4MzMwOS8zNDI5MDA2MzQtMDYzZTU1MTYtNzEwZS00MTQ1LTg2ZDgtNGQwOTE5MGVmODQzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAxVDE3NTU0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdmZWU1MzhiZDAzZDkxNWY5ZjNhYjRkMTFmZGRkMWI2NGI0MDYzY2JhNTU3MzE3Y2ZhZjFlZDMxNDkyZTk0NGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.SUmatfjook1HzWUOVyGwyfQU7v1shRgN7lssi-h-F7Q)
![Screenshot 2024-06-25 at 3 30 41 PM](https://private-user-images.githubusercontent.com/52083309/342900636-e1691433-898c-42d5-8cf4-361b85848a5e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyMTM2NDgsIm5iZiI6MTcyNTIxMzM0OCwicGF0aCI6Ii81MjA4MzMwOS8zNDI5MDA2MzYtZTE2OTE0MzMtODk4Yy00MmQ1LThjZjQtMzYxYjg1ODQ4YTVlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAxVDE3NTU0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTcxMDgxMGZkNTExZGJmNzQ4MGU0OWRiZjcxOWI0M2NkNGE0MzM3MTgxYjNiZmU1MDI1YjExZmQxZGRiOGQwZGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.LlDHplVR_rqC6urz4QN8q54Lpzu3ouQu4Y1ro7fWE6Y)
Result of Crawler Run on Dev
Example Metadata