![]() |
Type in a command, or "ls dictionary" to search all commands for "dictionary", etc.
|
NAME
eatFeed - Pull data out of a web feed (RSS,XML,etc).
SYNOPSIS
eatFeed [ELEMENTS] -url [FEED URL]
EXAMPLES
eatFeed items[0].link -url http://digg.com/rss/toplinks.xml
Returns the url of the current top story on digg.com
eatFeed items[2].description -url http://rss.slashdot.org/Slashdot/slashdot
Returns the description of the third story currently on slashdot.
eatFeed items[4].title -url http://del.icio.us/rss/popular
Returns the title of the fifth item on the del.icio.us list.
Note that item arrays are zero-based. The first post would be items[0].
DESCRIPTION
eatFeed allows you to pull selected data from a web feed (XML,RSS,ATOM,etc). You could use
it to grab the title/url of the latest post on your favorite site. In addition to syndicated
feeds, you could use eatFeed to retrieve data from any accepted data file.
With most web feeds, the most common elements you'll want to use are:
items[0].link
items[0].title
items[0].description
While 'link','title', and 'description' are the most common, you should be able to use
eatFeed to retrieve any element. Look at the source of your feed to find additional
data elements.
NOTES
This uses Stephen Paul Weber's outline converter script behind the scenes:
http://xoxotools.ning.com/outlineconvert.php
Check out 'oconv' for a yubnub implementation of the outline converter.
AUTHOR
Allen Ormond - aormond (at) gmail (dot) com