This commit is contained in:
parent
85005d6bf4
commit
37a99fd175
4
itsb.xml
4
itsb.xml
|
@ -896,9 +896,9 @@
|
||||||
<url>https://www.zma.go.tz/</url>
|
<url>https://www.zma.go.tz/</url>
|
||||||
<feed format="rss" lang="English" id="zma-rss">
|
<feed format="rss" lang="English" id="zma-rss">
|
||||||
<curl>
|
<curl>
|
||||||
<url>https://www.zma.go.tz/zma_casuality.php</url>
|
<url>https://www.zma.go.tz/ZMA_Accidents.html</url>
|
||||||
</curl>
|
</curl>
|
||||||
<pup>#content2 li a</pup>
|
<pup>div[class$="-event"]</pup>
|
||||||
<jq path="zma.jq" />
|
<jq path="zma.jq" />
|
||||||
<json2xml />
|
<json2xml />
|
||||||
<output>zma.xml</output>
|
<output>zma.xml</output>
|
||||||
|
|
11
jq/zma.jq
11
jq/zma.jq
|
@ -9,18 +9,19 @@ import "./helpers" as helpers;
|
||||||
"channel": {
|
"channel": {
|
||||||
"title": "ZMA investigation reports",
|
"title": "ZMA investigation reports",
|
||||||
"description": "Zanzibar Maritime Authority accident investigation reports",
|
"description": "Zanzibar Maritime Authority accident investigation reports",
|
||||||
"link": "https://www.zma.go.tz/zma_casuality.php",
|
"link": "https://www.zma.go.tz/ZMA_Accidents.html",
|
||||||
"language": "en-tz",
|
"language": "en-tz",
|
||||||
"pubDate": (now | strftime("%a, %d %b %Y %T %z")),
|
"pubDate": (now | strftime("%a, %d %b %Y %T %z")),
|
||||||
"docs": "https://www.rssboard.org/rss-specification",
|
"docs": "https://www.rssboard.org/rss-specification",
|
||||||
"ttl": 1440,
|
"ttl": 1440,
|
||||||
"generator": "ITSB",
|
"generator": "ITSB",
|
||||||
"item": [.[] | {
|
"item": [.[].children | select(.[0].children[1].href != "#") | {
|
||||||
"title": .text,
|
"title": .[1].text,
|
||||||
"link": (.href | helpers::urlresolve("https://www.zma.go.tz/zma_casuality.php")),
|
"link": (.[0].children[1].href | helpers::urlresolve("https://www.zma.go.tz/ZMA_Accidents.html")),
|
||||||
|
"description": .[2].text,
|
||||||
"guid": {
|
"guid": {
|
||||||
"@isPermaLink": "true",
|
"@isPermaLink": "true",
|
||||||
"#text": (.href | helpers::urlresolve("https://www.zma.go.tz/zma_casuality.php"))
|
"#text": (.[0].children[1].href | helpers::urlresolve("https://www.zma.go.tz/ZMA_Accidents.html"))
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue