Chapter

Create RSS Module

Create RSS Module

In Yahoo Pipes, the Create RSS Module works similar to the “Create RSS Module” and Item Builder. It allows you to convert data that’s not in RSS – to RSS format by changing the attribute names. To rename a non-RSS element to RSS structure, just select an existing element from the drop down list.

http://chilliwackdesign.com/yahoopipes/fetchdata.xml

In this example, we’re going to re-use our XML feed of NHL team Ticketmaster pages again. Because it’s not in RSS format, we can use the Create RSS Module to make it so.

First we need to plug our data source into the Fetch Data Module and use “product” as our “path to item list” to narrow down our feed items.

Create RSS Module

Create RSS Module

Then wire it into the Create RSS Module.

Create RSS Module

If we click the “plus” icons beside “media.content” and “media.thumbnail”, we’ll be presented with more dropdown menus.

Create RSS Module

Create RSS Module

The Create RSS Module contains 13 different RSS attributes:

  • Title – title of the RSS item.
  • Description – description/content of the RSS item.
  • Link – URL included in the description/content.
  • PubDate – Date the RSS item was published.
  • Author – author of the RSS item.
  • GUID – “globally unique identifier”. The URL of the RSS item.
  • Media.content
  • Url – url of media (picture, video etc) included in the RSS item description/content.
  • Type – format of the image (jpeg, wmv, mp3 etc.)
  • Width – width of the media
  • Height – height of the media
  • Media.thumbnail
  • Url – url of a media thumbnail included in the RSS item description/content.
  • Width – width of the thumbnail media
  • Height – height of the thumbnail media.

In our example, we’ll assign 4 attributes/elements (the title, description, link and media).

Lets make the NHL team names from our XML feed our RSS title (item.level1 or item.product_name)

The description can be our Ticketmaster affiliate link – we’ll use the shorter link (item.buyat_short_deeplink_url).

The link can also be our Ticketmaster affiliate link – we’ll use the shorter link (item.buyat_short_deeplink_url). (The link included in our description won’t be clickable, but our title will because we assigned a link).

The media can be the NHL logos (found under the “item.image_url” attribute in our XML feed).

Create RSS Module

Now you can see that Yahoo Pipes has added the RSS attributes to our feed in the Debugger pane:

Create RSS Module

And if we save our Yahoo pipe…

Create RSS Module

…because our RSS feed contains media, we can view the output as “image” to display the NHL logos. Our content will then show up when we hover over each image…

Create RSS Module

…or just “list”, to only display our content with the images beside it:

Create RSS Module

0 Comments ↓

No comments yet.

Leave a Reply