diff --git a/feedgen.sh b/feedgen.sh index 88bb292..8976e6c 100755 --- a/feedgen.sh +++ b/feedgen.sh @@ -11,4 +11,12 @@ echo Building ATSB feed to $DIR/feeds/atsb.xml curl -s 'https://www.atsb.gov.au/publications/safety-investigation-reports/?s=1&sort=OccurrenceReleaseDate&sortAscending=descending&investigationStatus=Completed,Discontinued&printAll=true' \ | pup 'table.selectable_grid tr:not(.header) json{}' \ | jq -f $DIR/jq/atsb.jq \ - | json2xml > $DIR/feeds/atsb.xml.new && mv $DIR/feeds/atsb.xml.new $DIR/feeds/atsb.xml + | json2xml > $DIR/feeds/atsb.xml.new \ + && mv $DIR/feeds/atsb.xml.new $DIR/feeds/atsb.xml + +echo Building TAIC feed to $DIR/feeds/taic.xml +curl -s 'https://www.taic.org.nz/inquiries?order=field_publication_date&sort=desc' \ + | pup '#view-table-wrapper tbody tr json{}' \ + | jq -f $DIR/jq/taic.jq \ + | json2xml > $DIR/feeds/taic.xml.new \ + && mv $DIR/feeds/taic.xml.new $DIR/feeds/taic.xml diff --git a/index.html b/index.html index 6635bff..8d6db73 100644 --- a/index.html +++ b/index.html @@ -153,6 +153,32 @@ + +
Country | +New Zealand | +
Language | +English | +
Types | +Rail, aviation, marine | +
Frequency | +10-20 reports/year | +
Feed | +link | +