25 lines
1.1 KiB
Plaintext
25 lines
1.1 KiB
Plaintext
# BFU English feed generator
|
|
# Expects pup JSON output holding <tr> tags, outputs xmltodict-compatible JSON
|
|
# WARNING: Dates are locale-sensitive; the RSS feed might not generate correctly with another locale.
|
|
|
|
{
|
|
"rss": {
|
|
"@version": "2.0",
|
|
"channel": {
|
|
"title": "BFU Deutsch",
|
|
"description": "Bundesstelle für Flugunfalluntersuchung",
|
|
"link": "https://www.bfu-web.de/DE/Publikationen/Untersuchungsberichte/untersuchungsberichte_node.html?cms_gts=235998_list%253DdateOfIssue_dt%252Bdesc",
|
|
"language": "de-DE",
|
|
"pubDate": (now | strftime("%a, %d %b %Y %T %z")),
|
|
"docs": "https://cyber.harvard.edu/rss/rss.html",
|
|
"ttl": 86400,
|
|
"generator": "ITSB",
|
|
"item": [.[] | {
|
|
"title": (.children[3].children[0].text + ": " + .children[2].text + ", " + .children[1].text),
|
|
"link": ("https://www.bfu-web.de" + .children[3].children[0].href),
|
|
"pubDate": (.children[0].text | strptime("%d.%m.%Y") | mktime | strftime("%a, %d %b %Y %T %z"))
|
|
}]
|
|
}
|
|
}
|
|
}
|