Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15609 > unrolled thread
| Started by | Gregory Lypny <gregory.lypny@videotron.ca> |
|---|---|
| First post | 2011-02-08 10:03 +0000 |
| Last post | 2011-02-09 07:09 +0000 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
Using Mathematica to Grab RSS Feeds Gregory Lypny <gregory.lypny@videotron.ca> - 2011-02-08 10:03 +0000
Re: Using Mathematica to Grab RSS Feeds "Sjoerd C. de Vries" <sjoerd.c.devries@gmail.com> - 2011-02-09 07:12 +0000
Re: Using Mathematica to Grab RSS Feeds Gregory Lypny <gregory.lypny@videotron.ca> - 2011-02-09 07:09 +0000
| From | Gregory Lypny <gregory.lypny@videotron.ca> |
|---|---|
| Date | 2011-02-08 10:03 +0000 |
| Subject | Using Mathematica to Grab RSS Feeds |
| Message-ID | <iir4e4$6h0$1@smc.vnet.net> |
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
[toc] | [next] | [standalone]
| From | "Sjoerd C. de Vries" <sjoerd.c.devries@gmail.com> |
|---|---|
| Date | 2011-02-09 07:12 +0000 |
| Message-ID | <iiteoc$jm6$1@smc.vnet.net> |
| In reply to | #15609 |
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...@videotron.ca> wrote:
> Hello everyone,
>
> Wondering if anyone has used Mathematica to grab RSS feeds and curate the m in some sort of a database for later analysis. Any tips on how this might be done?
>
> Regards,
>
> Gregory Lypny
[toc] | [prev] | [next] | [standalone]
| From | Gregory Lypny <gregory.lypny@videotron.ca> |
|---|---|
| Date | 2011-02-09 07:09 +0000 |
| Message-ID | <iiteiq$jhh$1@smc.vnet.net> |
| In reply to | #15609 |
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...@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
>
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web