I'm wondering how you can use Yahoo Pipes to get any tweets than contain a url to link to that url when clicked, instead of linking to Twitter.
views:
97answers:
1
A:
I made some assumptions.
- You want the first URL if there are multiple links in the message
- If there is no URL, you will skip the tweet
- You only care about http and https links
The flow ends up:
- 1 Fetch Feed - Use twitter RSS
- 2 Filter -
item.description
Matches regexhttps?://
- 3 Rename -
item.description
Copy Aslink
- 4 Regex - In
item.link
replace^.*?(https?://[\w:#@%/;$()~?+-=\.&]+).*$
with$1
(s)
If you want to see all tweets, then the simplest thing is to split the feed at the top and filter the ones with and without URLs and only process the URL ones. Finally you can remerge the feeds before outputting.
If you want more url types, change the https?://
to (https?|ftp|etc)://
in step 2 and 4
I made a sample here.
Gavin Brock
2010-04-02 05:17:43
@Gavin Brock: Thanks very much indeed. I have to say that answers it exactly, and the assumptions were the right ones.
Donald Jenkins
2010-04-02 12:14:11