0

Modifying Looped Fetch results

http://pipes.yahoo.com/pipes/pipe.edit?_id=7206d80b6e410d7e6439a0457a1f9a62

I have a process created that reads search terms from a Google Docs spreadsheet, tweaks them slightly, then loops over each term and retrieves Google News (RSS) results for it.

That all works fine, but I'd like to be able to modify each resulting title to add the original search term. Can't figure out how to do that.

Simplified Example:

  1. csv items... "List, Of, Terms"
  2. string tokenizer (",")
  3. Loop -> URL Builder ("http://news.google.com/?output=rss&q=item.content")
  4. Loop-> Fetch Feed (item.url)

...Emit all... Results...

  1. This is a "list" search result
  2. This is another result list item
  3. This list is only 3 items long.
  4. This is a "Of" result

I want to turn those results into:

  1. "List" - This is a "list" search result
  2. "List" - This is another result list item
  3. "List" - This list is only 3 items long.
  4. "Of" - This is a "Of" result

Ideas appreciated

by
2 Replies
  • Change Example Step 3 and 4 to instead be Loop-> My sub-pipe.

    The sub-pipe needs a Text Input module, a URL Builder module, a Fetch Feed module (of course), then a Regex module to manipulate each title...

    In item.title replace ^ with - . In item.title replace ^ with [piped from the Text Input module].

    1
  • Awesome. Thank you!

    0

Recent Posts

in Pipes