From c208c0abc01ed5c46774f0cabdc52f4a5b9d8a4b Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 6 Jul 2012 17:25:49 +0000 Subject: o Initial import. --- .gitignore | 1 + README.txt | 6 ++++++ tv.nrk.no.xsl | 35 +++++++++++++++++++++++++++++++++++ tv.nrk.no.xsl.txt | 1 + update-feed.sh | 3 +++ update-feed.sh.txt | 1 + 6 files changed, 47 insertions(+) create mode 100644 .gitignore create mode 100644 README.txt create mode 100644 tv.nrk.no.xsl create mode 120000 tv.nrk.no.xsl.txt create mode 100644 update-feed.sh create mode 120000 update-feed.sh.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f45b400 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.atom diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..cd95ae5 --- /dev/null +++ b/README.txt @@ -0,0 +1,6 @@ +Want to know what's recently been published at http://tv.nrk.no, but +don't want to poll it all the time? Then this is the thing for you! + +This is a small experiment to create an atom feed from +http://tv.nrk.no. Put the .atom file in your feed reader and you'll +get a feed with the recent shows from NRK. diff --git a/tv.nrk.no.xsl b/tv.nrk.no.xsl new file mode 100644 index 0000000..18d59a9 --- /dev/null +++ b/tv.nrk.no.xsl @@ -0,0 +1,35 @@ + + + + + + New shows + urn:trygvis:tv.nrk.no,recent + + + + + + + + + + + <xsl:value-of select='normalize-space(a)'/> + + Trygve Laugstøl + + + + + + + + + diff --git a/tv.nrk.no.xsl.txt b/tv.nrk.no.xsl.txt new file mode 120000 index 0000000..c14950c --- /dev/null +++ b/tv.nrk.no.xsl.txt @@ -0,0 +1 @@ +tv.nrk.no.xsl \ No newline at end of file diff --git a/update-feed.sh b/update-feed.sh new file mode 100644 index 0000000..f0a7508 --- /dev/null +++ b/update-feed.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +curl -s http://tv.nrk.no/listobjects/recentlysent | dos2unix |xmllint --html --dropdtd --xmlout - 2> /dev/null | xmlstarlet tr ./tv.nrk.no.xsl > tv.nrk.no.atom diff --git a/update-feed.sh.txt b/update-feed.sh.txt new file mode 120000 index 0000000..c0c7c0c --- /dev/null +++ b/update-feed.sh.txt @@ -0,0 +1 @@ +update-feed.sh \ No newline at end of file -- cgit v1.2.3