plumber!s toolbox

tips, tricks, techniques, and tools for yahoo! pipes
by alex ibrado
Apr 21

pubDate and guid in RSS

When creating a custom feed from e.g. a JSON source, it’s so irritating not to have pubDate or proper guid fields in the output RSS. Creating item.pubDate and item.guid entries won’t work. Here’s how to do it.

pipes.yahoo.com/plumber/dateguid

Apr 19

Relative Time

Here’s a module that converts date/time strings to relative time, e.g. “less than a minute ago”, “about 3 hours ago”, “about 26 days from now”, etc. It handles past and future dates and outputs relative time from minutes to years. The Date Input module is quite lax as to what constitutes a valid date, and everything is converted to UTC — make sure you test it first so there are no surprises.

For a demo, please see pipes.yahoo.com/plumber/reltimedemo. You can see it running below:



This module is for Gari. Hi, bro! :-)

pipes.yahoo.com/plumber/reltime

Apr 18

Field(s) in Regex

To use a field as part of the replacement value in a Regex, use the following: ${fieldname}. You can use this with a String Builder as well.

pipes.yahoo.com/plumber/fieldinregex

Array to string

Here’s a neat trick. Did you know that you can use the URL Builder to turn array elements into a slash-delimited string?

pipes.yahoo.com/plumber/a2str

Tumblr Titles with Tags

Given the Field in Regex and Array To String tricks, here’s a standalone tool that modifes your Tumblr feed such that the tags you assign to a post are appended to the title. You can optionally specify a regex for the tags that you want to exclude.

Check it out!



pipes.yahoo.com/plumber/tttags