How to get all the hyperlinks and write to one local file?

Is there a way to fetch all the hyperlinks (some link to external website contents) in all posts on my forum and write them to a local file?

So that I can check if there are links to outdated/expired contents and update accordingly.

Thanks for any help.

I haven’t tried it yet, but there is a project on GitHub that claims do this:

2 Likes