username:
password:
Online newsreader
Download newsreader package.

The newsreader pulls rdf/rss/xml files from various news sites
using wget. The resultant download is then processed into html files
that are incorporated in your website using Server Side Includes (SSI).

The following cronscript should be run from cron not more than once per hour:-
 #!/bin/bash
 #
 # "makenews":- cronscript to pull rss/rdf/xml 
 #  newsfeeds and display them as HTML includes.
 #

 basedir="/home/www/skywhale"
 bindir="$basedir/bin"   	
 newsdir="$basedir/htdocs/news"
 datadir="$basedir/data"
	
 #Guardian
 /usr/bin/wget  -q -N -O $datadir/guardian \
   www.guardian.co.uk/syndication/service/0,11065,331-0-5,00.html?U2332\
   www.guardian.co.uk/syndication/service/0,11065,334-0-5,00.html?U2332
	
 #BBCi
 /usr/bin/wget  -q -N -O $datadir/bbc \
   www.bbc.co.uk/syndication/feeds/news/ukfs_news/front_page/rss091.xml

 #Slashdot
 /usr/bin/wget  -q -N -O $datadir/slashdot www.slashdot.org/slashdot.xml

 #The Register
 /usr/bin/wget  -q -N -O $datadir/theregister www.theregister.co.uk/feeds/latest.rdf


 $bindir/guardian >$newsdir/guardian.news
 $bindir/bbc >$newsdir/bbc.news
 $bindir/slashdot >$newsdir/slashdot.news
 $bindir/theregister >$newsdir/theregister.news

The cronscript is contained in the downloadable newsreader package.

Sample HTML/CSS code for displaying the news page:-
 <a href="http://www.guardian.co.uk" target="_blank">
 <img src="/images/news/guardian_icon.jpg" height=16 alt="The Guardian" align="top">
 <b>   The Guardian </b>
 </a>
        
 < !--#include virtual="/news/guardian.news" -- >
Last update: 2023-03-11