How to write automation script to navigate a website

How to write script to navigate a website and click on link to download mp3 file and do this in a loop? Here are more details:
Assume The website contains links to many podcasts.
I need the following script (what program language is good to navigate a website)
Begin Loop

  • Click and select podcast title and copy title into clipboard
  • Click on the podcast link to select the podcast
  • Then Click on link to download the podcast
  • Then Click on link to save podcast
  • Paste podcast title
  • Click on Save
  • If last podcast then exit
    End Loop

I did not test this, but according to Google BARD AI here is a start.

You might have more luck with a simple web spider. These are tools that will download a mirror copy of a website. HTTRack is one free one, but there are others.