Use HTTPS when building feeds
This commit is contained in:
parent
32d9ad4af4
commit
f484b98621
14
feedgen.sh
14
feedgen.sh
|
@ -42,21 +42,21 @@ curl -s 'https://www.taic.org.nz/inquiries?order=field_publication_date&sort=des
|
|||
|
||||
log Building JTSB Aviation English feed to $DIR/feeds/jtsb/en/air.xml
|
||||
mkdir -p $DIR/feeds/jtsb/en
|
||||
curl -s 'http://www.mlit.go.jp/jtsb/airrep.html' \
|
||||
curl -s 'https://www.mlit.go.jp/jtsb/airrep.html' \
|
||||
| pup 'table.kankokuiken-en tr:not(:first-child) json{}' \
|
||||
| jq -f $DIR/jq/jtsb/en/air.jq \
|
||||
| json2xml > $DIR/feeds/jtsb/en/air.xml.new \
|
||||
&& mv $DIR/feeds/jtsb/en/air.xml.new $DIR/feeds/jtsb/en/air.xml
|
||||
|
||||
log Building JTSB Rail English feed to $DIR/feeds/jtsb/en/rail.xml
|
||||
curl -s 'http://www.mlit.go.jp/jtsb/railrep.html' \
|
||||
curl -s 'https://www.mlit.go.jp/jtsb/railrep.html' \
|
||||
| pup 'table.kankokuiken-en tr:not(:first-child) json{}' \
|
||||
| jq -f $DIR/jq/jtsb/en/rail.jq \
|
||||
| json2xml > $DIR/feeds/jtsb/en/rail.xml.new \
|
||||
&& mv $DIR/feeds/jtsb/en/rail.xml.new $DIR/feeds/jtsb/en/rail.xml
|
||||
|
||||
log Building JTSB Marine English feed to $DIR/feeds/jtsb/en/marine.xml
|
||||
curl -s 'http://www.mlit.go.jp/jtsb/marrep.html' \
|
||||
curl -s 'https://www.mlit.go.jp/jtsb/marrep.html' \
|
||||
| pup 'table.kankokuiken-en tr:not(:first-child) json{}' \
|
||||
| jq -f $DIR/jq/jtsb/en/marine.jq \
|
||||
| json2xml > $DIR/feeds/jtsb/en/marine.xml.new \
|
||||
|
@ -132,22 +132,22 @@ curl -s 'https://www.bfu-web.de/DE/Publikationen/Untersuchungsberichte/untersuch
|
|||
|
||||
log Building UZPLN English feed to $DIR/feeds/uzpln/en.xml
|
||||
mkdir -p $DIR/feeds/uzpln
|
||||
curl -s 'http://www.uzpln.cz/en/reports' \
|
||||
curl -s 'https://www.uzpln.cz/en/reports' \
|
||||
| pup 'table.table tbody tr:not(:first-child) json{}' \
|
||||
| jq -f $DIR/jq/uzpln.jq \
|
||||
--arg language 'en' \
|
||||
--arg description 'Air Accidents Investigation Institute' \
|
||||
--arg link 'http://www.uzpln.cz/en/reports' \
|
||||
--arg link 'https://www.uzpln.cz/en/reports' \
|
||||
| json2xml > $DIR/feeds/uzpln/en.xml.new \
|
||||
&& mv $DIR/feeds/uzpln/en.xml.new $DIR/feeds/uzpln/en.xml
|
||||
|
||||
log Building UZPLN Czech feed to $DIR/feeds/uzpln/cz.xml
|
||||
curl -s 'http://www.uzpln.cz/zpravy-ln' \
|
||||
curl -s 'https://www.uzpln.cz/zpravy-ln' \
|
||||
| pup 'table.table tbody tr:not(:first-child) json{}' \
|
||||
| jq -f $DIR/jq/uzpln.jq \
|
||||
--arg language 'cz' \
|
||||
--arg description 'Ústav pro odborné Zjišťování Příčin Leteckých Nehod' \
|
||||
--arg link 'http://www.uzpln.cz/zpravy-ln' \
|
||||
--arg link 'https://www.uzpln.cz/zpravy-ln' \
|
||||
| json2xml > $DIR/feeds/uzpln/cz.xml.new \
|
||||
&& mv $DIR/feeds/uzpln/cz.xml.new $DIR/feeds/uzpln/cz.xml
|
||||
|
||||
|
|
Loading…
Reference in New Issue