Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Digg/RSS Reader

DZone's Guide to

Digg/RSS Reader

·
Free Resource
Grabs the RSS-feed from digg.com and reads it out
loud using festival.


#!/bin/sh
# Copyright (c) 2005 Davor Babic 
  
   
# All rights reserved.
# Usage of the works is permitted provided that this
# instrument is retained with the works, so that any
# entity that uses the works is notified of this
# instrument.
# DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.

url="http://digg.com/rss/index.xml"

echo "Parsing RSS..."
curl --silent "$url" | grep -E '(title>|description>)' | \
        sed -n '4,$p' | \
	sed -e 's/
   //' -e 's/<\/title>//' -e 's/
   
    /  /' \
	    -e 's/<\/description>//' | head -5 > digg 
echo "Reading..."
festival --tts digg
rm -rf ./digg
echo "Done."

   
  
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}