MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Using Mathematica to Grab RSS Feeds

  • To: mathgroup at smc.vnet.net
  • Subject: [mg116264] Re: Using Mathematica to Grab RSS Feeds
  • From: Gregory Lypny <gregory.lypny at videotron.ca>
  • Date: Wed, 9 Feb 2011 02:09:19 -0500 (EST)
  • References: <iir4e4$6h0$1@smc.vnet.net>

Hi Sjoerd,

Thank you for your tips!  This is exactly the type of thing that I need 
to get me going.  I figured Import was the thing to use, but I'm still 
a bit green on specifying patterns for Cases.  Your example here will 
give me a good start.

Thanks again,

Gregory Lypny


On Tue, Feb 8, 2011, at 7:56 AM, Sjoerd C. de Vries wrote:

> Never done this, but Import may be your tool of  choice:
>
> xmlIn = Import["http://feeds.bbci.co.uk/news/world/europe/rss.xml";,
> "XML" ]
>
> get descriptions:
>
> Cases[xmlIn,
> XMLElement["description", {}, {desc___}] -> desc, Infinity]
>
> get links:
>
> Cases[xmlIn, XMLElement["link", {}, {desc___}] -> desc, Infinity]
>
> etc.
>
> Cheers -- Sjoerd
>
> On Feb 8, 11:03 am, Gregory Lypny <gregory.ly... at videotron.ca> wrote:
>> Hello everyone,
>>
>> Wondering if anyone has used Mathematica to grab RSS feeds and curate them in some sort of a database for later analysis.  Any tips on how this might be done?
>>
>> Regards,
>>
>> Gregory Lypny
>



  • Prev by Date: Re: ListCorrelate and Powers
  • Next by Date: Re: ContourPlot and lines vrs. 8.0
  • Previous by thread: Re: Using Mathematica to Grab RSS Feeds
  • Next by thread: Re: Using Mathematica to Grab RSS Feeds