I understand somewhat how to use the XML
package to read and parse an XML file, such as a piece of an RSS feed. However, what is the basic setup for continuously reading an RSS feed?
For example, imagine that I want to set up a facility that continuously reads the feed from http://evemaps.dotlan.net/feed/sovereignty
and stores the data in some kind of R data structure (say, a data.frame
). I imagine that I would need to do something like the following:
- Set up R on a server (e.g. RStudio Server on an AWS instance)
- Open a HTTP connection to the rss feed
- Continuously read and parse distinct bits of the feed and add them to a
data.frame
which grows by each entry added
However, this is still a rather vague pictures. What are the basic packages and functions that I would need to string together to make this work? Meaning: what are the basic steps that I would need to put in place to create such a facility? I'm not looking for anyone to write this facility for me (even though that would be nice!). Rather, I'm trying to understand which overall steps are involved.