The ‘regex’ module is incredibly powerful. It allows you to alter your RSS feeds. You can add in content, remove content, add images and remove images. (excellent for removing RSS adverts).
In this tutorial we will look at adding text to the title.
Adding content to the title using the Yahoo Pipe Regex operator
- Under operators select the regex module
- Attach the regex module to the fetch feed module.
- Select ‘Item.title’ from the drop down box
- In the ‘replace’ box add in the following cymbal. (^)
- In the ‘with’ box add in a word of your choice. (myfeed)
- Check your debugger to see the word of your choice has been added to the front of the title.
Why is this useful?
When you begin to take RSS feeds from multiple sites it is useful to add in the site source to the start of the title. When reading your finished RSS feed you know what sources the content is coming from.
Here is an example of this in use
http://pipes.yahoo.com/pipes/pipe.info?_id=2d1493950ee470fb1735f26d3622d21c
No comments:
Post a Comment