|
|||||||||||||
|
BBC News 365 days a year This is a small script that I wrote, in order to keep a World News diary in my computer.
..And here is the script!... echo "================================================================================="; echo "Initialising..."; echo "================================================================================="; echo "connecting to BBC..."; echo "================================================================================="; echo "downloading today's headlines..."; wget -q -nd --load-cookies=cookies.txt --tries=50 -k http://news.bbc.co.uk/text_only.stm -O bbc-temp-`date -I`.html; echo "================================================================================="; echo "converting to text format, using html2text..."; html2text -nobs bbc-temp-`date -I`.html > bbc-main-headlines-`date -I`.txt; echo "================================================================================="; echo "removing temporary html file..."; rm -f bbc-temp-`date -I`.html; echo "================================================================================="; echo "ALL DONE! - File saved as bbc-main-headlines-`date -I`.txt"; echo "================================================================================="; echo "enable this command if you need an automatic print-out:"; echo "lp bbc-main-headlines-`date -I`.txt"; echo "================================================================================="; echo "Script written by Arkadian - Sept 02 2002"; echo "================================================================================="; echo "the program will now exit"; echo "=================================================================================";
|
||||||||||||
Copyright 2002: D Mitsinikos - if you wish to copy parts of my website,
by all means do, but please include my name and my web address |