Still a bit of a mess, but I did the best I could
- I used the FF geckodriver as opposed to the chromedriver u/selver used, somehow the chromedriver was giving me issues
- The script runs as a cronjob every 5 minutes
- The link is captured into archiveis using https://github.com/pastpages/archiveis
- There are a couple unused functions that I left in there in case someone wants to use them
Let me know if there are improvements that can be made.