Hi, I want to make a mix of RSS's from few ABC stations but I want to add to each item a prefix to show its origin.
Like all items from ABC-NY will have NY at the beginning, items from ABC San Fransisco will have SF.
Can I do that with pipes ?
joke alone, there are several ways to do what you want.
if you know the location of the feed and do not care about doing it manually, check out this pipe I made:
on the left side, for your first feed, I used a proper method of concatenating a location string with the title string. on the right side, second feed, a dirtier method using a regex that matches the whole title in order to add your location first.
Now, if you want to automatize your pipe (ie, not have to go to the source to change/add feeds), you need to get the location from the elements. based on the only difference in your links, you can get something like this second pipe:
(I put 6 possible input feeds jsut to show you that you're not limited to 5)
now you can fit it to your needs (in particular change what I used as identifier, because I'm sure that's what interest you).
once your feed is set up, just copy the rss link proposed.
using regex not to match a certain pattern but the whole content, just in order to add a preamble, that's an overkill ;)
On the left you concatenate string, a very basic operation. if it weren't the yahoo servers that you use to run this simplistic code, and you had a lot of such operations to do, you would go for the string concatenation.
if some of it is unclear feel free to ask, so you'll do it on your own next time :)