I am using this task to scrape the website shown in A2 for the status of a local mountain biking trail. The end product desired is setting a variable that reflects the trail status. The wrench in the works is that the person who updates the trail status on this site does not use a consistent format to state the status. Also, it seems there are more that one person who can change the site. If you visit the site, you will see in large print a statement regarding the status. Under that, there is a note, where the words "open" and "closed" occur a few times, so it seems to me that just trying to match those words in A3 would cause issues, as both occur. Also on that site, there is a clickable "next" where you can see past trail status updates and see that there is no consistent format of the message. Sometimes the two trail names are reversed, sometimes the word "parks" is added, sometimes there are spelling errors, sometimes the trail closure is justified (wet, race, tree).
Besides asking the site maintainers to use standard words or phrases, how can I use step A3 to reliably scrape the info to get the trail status? Will I have to list all the possible matches in my Regex of A3? Could I use the number of occurrances of the words "open" or "closed" and the one with the higher count wins?
```
Task: Blankets
A1: Vibrate [
Time: 46 ]
A2: HTTP Request [
Method: GET
Timeout (Seconds): 30
Structure Output (JSON, etc): On ]
A3: Simple Match/Regex [
Type: Regex
Text: %http_data
Regex: (Blankets Creek are open|Rope Mill are CLOSED) ]
A4: Run Shell [
Command: date +"%H:%M"
Timeout (Seconds): 0
Store Output In: %BLANKETSTRAILTIME ]
A5: If [ %mt_match ~ Blankets Creek are open ]
A6: Variable Set [
Name: %BLANKETSSTATUS
To: OPEN
Max Rounding Digits: 3
Structure Output (JSON, etc): On ]
A7: Else
A8: Variable Set [
Name: %BLANKETSSTATUS
To: CLOSED
Max Rounding Digits: 3
Structure Output (JSON, etc): On ]
A9: End If
A10: Minimalistic Text [
Configuration: %BLANKETS = %BLANKETSSTATUS (%BLANKETSTRAILTIME)
Timeout (Seconds): 0
Structure Output (JSON, etc): On ]
A11: Notify [
Title: Blankets Creek
Text: Blankets Creek trail system is now open
Icon: mw_maps_directions_bike
Number: 0
Priority: 3
LED Colour: Red
LED Rate: 0 ]If [ %BLANKETSSTATUS ~ OPEN ]
A12: Vibrate [
Time: 46 ]
A13: Flash [
Text: %BLANKETSSTATUS (%BLANKETSTRAILTIME)
Long: On ]
```