# HG changeset patch # User paulo@twcdns.fastsearch.net # Date 1284359792 25200 # Node ID fbd8c30c465c1b4bbfa84027545becc85dec2070 # Parent 8afd18e103c7403ce1611a2710ae542fc96d90fb add more RSS feeds; normalize-space in step2.xsl and "a hrefs"; myrss_update.sh now outputs a more complete HTML document to stdout diff -r 8afd18e103c7 -r fbd8c30c465c myrss/FEEDS --- a/myrss/FEEDS Sat Sep 11 04:20:41 2010 -0700 +++ b/myrss/FEEDS Sun Sep 12 23:36:32 2010 -0700 @@ -5,7 +5,10 @@ http://feeds.sfgate.com/sfgate/rss/feeds/warriors http://feeds.sfgate.com/sfgate/rss/feeds/blogs/sfgate/warriors/index_rss2 http://www.reddit.com/.rss +http://services.digg.com/2.0/story.getTopNews?type=rss +http://feeds.delicious.com/v2/rss/?count=15 http://feeds.feedburner.com/Metafilter +http://feeds.slate.com/slate http://bikesnobnyc.blogspot.com/feeds/posts/default http://feeds.feedburner.com/bikehugger http://www.xkcd.com/rss.xml diff -r 8afd18e103c7 -r fbd8c30c465c myrss/index.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/myrss/index.css Sun Sep 12 23:36:32 2010 -0700 @@ -0,0 +1,21 @@ +@import "../index.css"; + +h1 +{ + font-family: "sans-serif"; +} + +h2 +{ + font-family: "sans-serif"; +} + +a:link +{ + text-decoration: none; +} + +p:first-line +{ + font-weight: bold; +} diff -r 8afd18e103c7 -r fbd8c30c465c myrss/myrss_update.sh --- a/myrss/myrss_update.sh Sat Sep 11 04:20:41 2010 -0700 +++ b/myrss/myrss_update.sh Sun Sep 12 23:36:32 2010 -0700 @@ -1,10 +1,20 @@ #!/bin/sh -OUTFILE="test.html" +TIMESTAMP=$(date '+%FT%T%:z') -echo '' > ${OUTFILE} +echo '' +echo '' +echo "${TIMESTAMP}" +echo '' +echo '' + +echo '' +echo "

${TIMESTAMP}

" while read LINE do - wget -q -U '' -O - ${LINE} | xsltproc step1.xsl - | xsltproc step2.xsl - >> ${OUTFILE} + wget -q -U '' -O - ${LINE} | xsltproc step1.xsl - | xsltproc step2.xsl - done < FEEDS + +echo '' +echo '' diff -r 8afd18e103c7 -r fbd8c30c465c myrss/step2.xsl --- a/myrss/step2.xsl Sat Sep 11 04:20:41 2010 -0700 +++ b/myrss/step2.xsl Sun Sep 12 23:36:32 2010 -0700 @@ -1,12 +1,14 @@ - + -

+

- - + -