ghacks Technology News

How To Create Custom RSS Feeds

Real Simple Syndication (RSS) makes it a lot easier to keep up to date with the latest updates on Internet services and websites. Many websites nowadays offer RSS feeds to provide their readers with an alternative to visiting the site manually, or subscribing to an e-mail newsletter.

Feed readers like RSS Owl or the online service Google Reader are easy to use and act as a central hub for information for many users. Sometimes though, websites are encountered that do not offer RSS feeds. An example of such a website is the Google New service which publishes the latest Google product updates. The service itself is triggered by RSS, but visitors are not offered options to subscribe to a feed.

We have created a feed for that service using the free service Feed 43, and would like to guide you through the creation of a custom RSS feed. This should give you the tools at hand to create a feed on other websites that do not offer one.

A basic understanding of HTML is beneficial for this, but not necessarily required. Start by visiting the Feed 43 website, and paste the url of the web page that you want to create an RSS feed for in the form. We use http://www.google.com/newproducts/ for our example. Ignore Encoding and click the Reload button.

custom rss feed

custom rss feed

All configurations happen on the next page. At the top, the page title and source code are displayed to the user. We need the source code later on, to find patterns for the news title, description and link. That’s the most technical and intimidating step of the process, but not as hard as it looks on first glance.

rss feed

rss feed

The patterns are defined in step 2. Feed 43 uses the {%} variable to define variables, and {*} for contents that are not relevant. Now we need to delve into the source code, but before we do that, we look at the original page to retrieve title and description that we need to find in the source code.

Take a look at the first new product title at the page, and search the source code for it. For our Google New example that is “Elevation service now available in the”. You will find the text in the source, with HTML elements around it. Now, we replace the news item title with the {%} variable and add the whole line

<a href="http://www.google.com/newproducts/#" class="headline showbody">{%}</a>

to the Item (repeatable) Search Pattern* in step 2. But, if you look a bit closer, or more precisely search on you find that the title appears a second time in the source. This is unusual for most web pages, but in this case the second occurrence in the code is actually the right one. Why? Because the full text of each post is posted in that location as well.

For the article title, we choose

<div class="hidden-title">{%}</div>

and put the code in the Item (repeatable) Search Pattern field.

For the description, we look a line beneath and find

<div class="hidden-content">{%}<div class="blogger-post-footer">

The full code that we put into that field is

<div class="hidden-title">{%}</div>{*}
<div class="hidden-content">{%}<div class="blogger-post-footer">

See the {*}? This gets rid of everything in between the two fields. If you leave it out, you will notice that a click on Extract will find 0 items, if you add it, all items are found.

The clipped data below will show how each entry is displayed in the RSS feed. Take a note of the variables {1} and {2}, those are set to the title of the article and the description.

rss creation

rss creation

We need to add those two to the RSS Item properties. The first into the title field, and the second in the description field.

feed43

feed43

A click on preview finally displays how the RSS feed will look in the RSS reader.

preview feed

preview feed

Finally, the RSS feed address, and the edit page address are displayed to the creator of the custom RSS feed. And that’s how you create custom RSS feeds with Feed43. If you have any questions about the process, let us know in the comments.

Enjoyed the article?: Then sign-up for our free newsletter or RSS feed to kick off your day with the latest technology news and tips, or share the article with your friends and contacts on Facebook or Twitter.

Related Articles:

Create RSS Feeds for sites that have none
Create Instant MP3 Rss Feeds
Create PDF Documents from RSS Feeds
Use Dapper To Create RSS Feeds From Any Page, Including Google Plus Posts
How To Create Your Custom Reddit RSS Feed



About the Author:Martin Brinkmann is a journalist from Germany who founded Ghacks Technology News Back in 2005. He is passionate about all things tech and knows the Internet and computers like the back of his hand. You can follow Martin on Facebook or Twitter.

Author: , Thursday September 23, 2010 -
Tags:, , , ,


Responses so far:

  1. Gavin says:

    This site is great, I use it to read a lot of sites (webcomics, etc) that lack RSS feeds.

  2. James says:

    Feed43 looks great, we have been looking for a tool to do exactly that to build into our product that enables users to filter RSS feeds on keywords and create social networking based news sites

  3. CG says:

    I’m trying to use feed43 too. It seems to me, it’s the most accurate one to my needs.
    But I’m having some trouble defining patters. Some information is selected and other doesn’t. Can anyone give me a hand?

    Maybe one day there is a Feed43 forum :)

  4. plasrobin says:

    Can you give my the feed url that you created for http://www.google.com/newproducts/ ? :D

  5. Emile says:

    Great, now i can make custom rss..

Leave a Reply   Follow Ghacks   Subscribe To Comment Rss

Subscribe without commenting

© 2005-2012 Ghacks.net. All Rights Reserved. Privacy Policy - About Us