reading rss feeds in applescript - rss

how do I read RSS feeds in apple script? I want it to pick and speakout latest news along with reading weather info

The easiest way would be to script an rss reader like NetNewsWire or even Safari. The second easiest way is to write it in Ruby or Python and call Applescript stuff using Appscript. Python has robust rss reading and parsing routines. Dealing with a lot of text processing in Applescript is painful. The third choice is to use an rss OSAX. There was one at http://osaxen.com but it appears down right now.

Satimage has a free osax (scripting addition) with xml capability. That would be a way to go.

Related

Update RSS from another XML file?

Hey. I am quite new to the whole web development/programming. I am trying to create an RSS feed which gets info from a separate XML file.
I know basics about XML and RSS, but I don't know how to make it updade. Lets say I update the XML then how would the RSS update automatically? Can someone maybe put me on the right track? Thanks in advance.
In which programming language do you want to accomplish this? One way would be to run a program that does some XML parsing and writing, e.g. PHP with SimpleXML and running the script as a cronjob.
[Edit:]
You could use LINQ to XML for that in ASP.NET, it is easy to use, just look at tutorials like Using LINQ to XML or
Introduction to LINQ - Simple XML Parsing

Yahoo Pipes: More complex RSS output?

I've been working with pipes for a while now, I am trying to output more than the basic structure of:
Item
title
link
description
guid
pubDate
I want to publish more data in the RSS feed under different fields but cannot figure out if this is even possible. Any ideas?
This post at the Yahoo Pipes blog goes through the basics of building a complex RSS feed with a couple examples.
http://blog.pipes.yahoo.net/2009/06/10/new-create-rss-and-rss-item-builder-modules/
I know this is not related to yahoo pipes, but if you are looking for etl tools, i found yahoo pipes very limiting. I have had the best luck with Open Kapow. Just in case you have not heard about/used it.

How can I convert an RSS feed to Atom, inline?

I admit to being a bit behind the times when it comes to understanding RSS/Atom feed issues.
All I know is, I want to have an Atom feed converted to an RSS feed inline. Meaning that I want to specify an option somewhere that says use this xsl or whatever to convert the Atom feed to an RSS feed.
Is there some way to accomplish this that doesn't require running a separate listener on my local box to do the translation? I.e. Instead of directly asking for the Atom feed, I get my 'service' to get the feed, transform it and give it to the real subscriber?
Sorry for the (probably) dumb question. Somehow I never got the memo on this stuff.
Thanks - Jon
Similar to Paul's answer... we use Feedburner for feeds - it's trivial to have it convert one type of feed to another.
Atom to RSS on the fly
Sounds like a Yahoo Pipes job to me..
http://pipes.yahoo.com/pipes/pipe.info?_id=Aj_YHfi62xGuBj4KkAtvUw
If you want to write your own, using C#. You would download the Atom and save it as RSS using the SyndicationFeed class. It's about 4 lines of code.

Which library should I use to generate RSS in Common Lisp?

What's the best library to use to generate RSS for a webserver written in Common Lisp?
Most anything will probably do. Personally, I've been using xml-emitter for my blog's Atom feed, which has worked out well so far.
Just choose whichever XML generation library you like and hack away, I'd say. As others have remarked, RSS is simple; it's little work to generate it manually.
That said, I recommend not generating plain strings directly. Having to deal with quoting data is more of a hassle than installing an XML library, and it's also insecure in case your feed contains data submitted by visitors of your website.
xml-emitter says it has an RSS 2.0 emitter built in.
CL-WHO can generate XML pretty easily.
I am not aware of any specific RSS library. But the format is fairly simple so any library that can write xml will do at that level.
You could have e.g. a look at the nuclblog (http://cyrusharmon.org/projects?project=nuclblog) project as that has the capability to generate an RSS feed for the blog entries it maintains.
cl-rss-gen is a tiny library (LGPL, depends on CL-WHO) that does some boilerplate work for you (supports generating RSS entries directly from CLOS class instances by specifying which slot maps to which attribute).
Take a look at the code before using it, it may give you the idea how it's working and whether you need it or not (as other posters said, you can generate RSS yourself with CL-WHO or any XML generation library).
Oh, and sorry for resurrecting a four years old thread, but if anyone searches for similar library, he/she will find the answer here.

Whats the best windows tool for merging RSS Feeds?

It seems like such a simple thing, but I can't find any obvious solutions...
I want to be able to take two or three feeds, and then merge then in to a single rss feed, to be published internally on our network.
Is there a simple tool out there that will do this? Free or commercial..
update: Should have mentioned, looking for a windows application that will run as a scheduled service on a server.
There are a whole pile of options here: http://allrss.com/rssremixers.html.
Maybe http://www.planetplanet.org/
will do what you want.
It's for creating blog aggregations like planet lisp.
Google reader, create a group, add your feeds into the folder and then share that as an RSS feed.
:-)
Works while you're asleep!
Yahoo Pipes could be nice. Depends on how much "private" you want the resulting feed to be.
For 100% offline solution investigate Atomisator. It's a Python framework basically for doing offline what Yahoo Pipes does online.
If you're using PHP, the SimplePie library will do this. Here's a tutorial.

Resources