Using Yahoo Pipes to makes tweets link to url they contain rather than Twitter
I'm wondering how you can use Yaho开发者_C百科o Pipes to get any tweets than contain a url to link to that url when clicked, instead of linking to Twitter.
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.
精彩评论