Sensor Web scraper - Get last in a list?

Trying to create a scraper sensor and automation which can notify me of a new version of a software package has been released, published on a website.

The web page has a list of versions and I want to be notified when “sdcard-jumper-t16-2.3V0024.zip” has increased by 1, to version “sdcard-jumper-t16-2.3V0025.zip”, and so on.

Is it possible to configure the scraper sensor to just change state when a new version is read from the website. If so, can someone help me with the code?


  - platform: scrape
    resource: https://downloads.open-tx.org/2.3/nightlies/sdcard/
    name: Jumper T16 SD card
    select: 'sdcard-jumper-t16-2.3V*.zip' ???
    value_template: '{{ Get last one of the sdcard-jumper-t16-2.3V* }}' ???
    index: Or get-max index somehow....???
    attribute: url
    scan_interval: 3600