Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Here's what I'm trying to do:

I have a private or user defined string. I would like to define a list of URLs, such as:

http://example.com/?item={REPLACE_ME}
http://example.net/?item={REPLACE_ME}
http://example.org/?item={REPLACE_ME}

These URLs are to RSS content.

I would like to use a string replace on each URL, replacing {REPLACE_ME} with the string given in the private/user-defined string.

Then, I would like to supply the altered URLs to Fetch Feed (or similar), to get a combined feed.

I'm not sure how to pull this off without creating an individual String Replace and URL Builder for every URL. Ideally, I'd have one string replace (as it's static), and somehow emit the URLs in a Loop, but I can't seem figure out how to do so.

share|improve this question

closed as off-topic by Rubén, jonsca Feb 27 at 0:42

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on applications or application features that are no longer available are off-topic for Web Applications as no one will ever be able to make use of the answers again." – Rubén, jonsca
If this question can be reworded to fit the rules in the help center, please edit the question.

I got this to work like so:

I set up a Private String with a comma-delimited list of URLs, piped into a String Tokenizer with the delimiter set to a comma.

String Tokenizer is piped into a Loop, which contains a String Replace, set to replace every "{REPLACE_ME}" with a given string (or content from a Text Input, in the example linked). This Loop is set to "assign output to..." an extra parameter.

Pipe that Loop into another Loop, containing a Fetch Feed. In that Fetch Feed, use the automatic selector to select the parameter that the previous Loop was assigning the output to. This Loop should be set to "emit all results" and piped into a Create RSS.

(This may be the wrong way to do it, but I kept running into trouble, and this is how I got it to work)...

In the Create RSS element, use the automatic selectors to essentially duplicate the proper fields... so "title" would be "item.title", etc.

Since we're combining multiple feeds, pipe that output into a Sort, and sort by 'item.pubDate', descending, and pipe that to Pipe Output.

You can see an example of this working via: http://pipes.yahoo.com/pipes/pipe.info?_id=3f4ccb9029a4e786ebc56da197495222

share|improve this answer