Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This outputs the last time the xml file was generated, as well as the lasteUpdated timestamp of Gladstone.
- xmlstarlet sel -t -c '/ecq/generationDateTime' -n -v '//lga[@areaCode=028]//district/@lastUpdated' -n
- You can use this to automatically display both by something like this:
- curl -s https://resultsdata.elections.qld.gov.au/PublicResults.zip | zcat 2>/dev/null | xmlstarlet sel -t -c '/ecq/generationDateTime' -n -v '//lga[@areaCode=028]//district/@lastUpdated' -n
- That will output something similar to this:
- <generationDateTime>2024-03-19T10:38:27.482106</generationDateTime>
- 2024-03-18T13:47:25
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement