r-does-rss: an ultra lightweight RSS reader for R
r-does-rss is an incredibly lightweight RSS reader for the R statistical programming language . It will parse RSS and Atom feeds and return a named list consisting of header information and a list of items.
Title: Lightweight RSS/Atom reader for R
Author: Noah Lorang
Maintainer: Noah Lorang <email@example.com>
Description: This is an ultra-lightweight RSS / atom reader for R. It will parse RSS 2.0 and earlier and Atom feeds. Support is provided for feeds that require basic HTTP authentication.
Depends: RCurl, XML
Clone this repository, install the
rss package and load it into your workspace:
git clone git://github.com/noahhl/r-does-rss.git
R CMD INSTALL r-does-rss
The RSS reader can be loaded as
rss has a single function,
getFeed(feed, auth), where
auth represents an optional basic HTTP authentication string of the format
"username:password". It may be omitted.
getFeed() returns a list containing a
header and a list of
Two demos are provided:
GetRBloggers(). These example get the Atom feed from Crantastic.org and the RSS feed from R-bloggers.com, respectively. They then display any new updates since the last time
~/.Rapp.history was last updated, or from the last week if unable to establish when ~/.Rapp.history was last updated.
The specific contents of the
items returned will vary based on the specification of the feed used as well as the constructor used in generating the feed. An attempt is made to unify the format of basic fields (published date, categories, description, etc.), but less common fields may differ (with the Atom specification diverging from the base RSS fields)
Please create issues using the Github issue tracking. Reproducible examples and pull requests are most welcome.