From 8ce41c4331d3e9386119516bf482a07456c4a5ec Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sat, 27 Aug 2016 17:52:13 +0200 Subject: heise-eisschrank --- README.md | 15 +++++++++++++++ filter.xsl | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ run.sh | 4 ++++ 3 files changed, 80 insertions(+) create mode 100644 README.md create mode 100644 filter.xsl create mode 100755 run.sh diff --git a/README.md b/README.md new file mode 100644 index 0000000..875ab59 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# heise Eisschrank +*Nimmt die heisse Luft aus dem heise.de Newsticker* + +```bash +$ ./run.sh +# writes atom feed in file: ./heise-atom-filtered.xml +``` + +### Demo +[https://www.xapek.org/~yvesf/public/heise-eisschrank/heise-atom-filtered.xml](https://www.xapek.org/~yvesf/public/heise-eisschrank/heise-atom-filtered.xml) + +### Requires + +- wget +- xsltproc \ No newline at end of file diff --git a/filter.xsl b/filter.xsl new file mode 100644 index 0000000..0ebbe4b --- /dev/null +++ b/filter.xsl @@ -0,0 +1,61 @@ + + + + + + + + + + heise online News (filtered) + + + + + + + SKIP + + + SKIP + + + SKIP + + + SKIP + + + SKIP + + + SKIP + + + SKIP + + + + + + + + + + + + + + Skip entry: + + + + + + + + + \ No newline at end of file diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..8047409 --- /dev/null +++ b/run.sh @@ -0,0 +1,4 @@ +#!/bin/sh +FEED_URL="http://www.heise.de/newsticker/heise-atom.xml" + +wget -O - -q "$FEED_URL" | xsltproc filter.xsl - > heise-atom-filtered.xml \ No newline at end of file -- cgit v1.2.1